Skip to content

Commit

Permalink
Do apt-get -f install when failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Apr 1, 2018
1 parent 6087c7e commit 1d02721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile.uboot.mk
Expand Up @@ -64,6 +64,7 @@ $(UBOOT_PACKAGE): u-boot-package $(UBOOT_LOADER)
--deb-priority optional --category admin \
--force \
--depends debsums \
--depends mtd-utils \
--deb-compression bzip2 \
--deb-field "Multi-Arch: foreign" \
--after-install u-boot-package/scripts/postinst.deb \
Expand Down
6 changes: 3 additions & 3 deletions rootfs/make_rootfs.sh
Expand Up @@ -152,9 +152,9 @@ do_chroot() {

do_install() {
FILE=$(basename "$1")
cp "$1" "$DEST/$(basename "$1")"
cp "$1" "$DEST/$FILE"
yes | do_chroot dpkg -i "$FILE"
do_chroot rm "$FILE"
rm -f "$DEST/$FILE"
}

# Run stuff in new system.
Expand Down Expand Up @@ -199,7 +199,7 @@ apt-get -y install dosfstools curl xz-utils iw rfkill wpasupplicant openssh-serv
nano git build-essential vim jq wget ca-certificates software-properties-common dirmngr \
gdisk parted figlet htop fake-hwclock usbutils sysstat fping iperf3 iozone3 ntp \
network-manager psmisc flash-kernel u-boot-tools ifupdown resolvconf \
net-tools mtd-utils rsync
net-tools mtd-utils rsync device-tree-compiler debsums
if [[ "$DISTRIB" == "debian" ]]; then
apt-get -y install firmware-realtek
elif [[ "$DISTRIB" == "ubuntu" ]]; then
Expand Down

0 comments on commit 1d02721

Please sign in to comment.