run apt-get update before installing packages in rootfs
This commit is contained in:
parent
6290593857
commit
53adca4feb
|
@ -579,6 +579,7 @@ generate_img() {
|
|||
# install mdadm/lvm2 into the target as it will start up system
|
||||
# daemons and prevent us from unmounting the target
|
||||
packages=$(echo $packages | fmt -w1 | egrep -v "(mdadm|lvm2)")
|
||||
sudo chroot ${mnt} apt-get update
|
||||
sudo chroot ${mnt} apt-get -y install $packages || {
|
||||
log "Failed to install packages on rootfs";
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue