Maccraft123/Cadmium

Cadmium installer -script fails on device: "chroot: cannot change root directory to 'apt': No such file or directory"

askolsam opened this issue · 1 comments

Version: built from master
Device: kukui/krane

Running /root/install -script on the device will fail with message chroot: cannot change root directory to 'apt': No such file or directory.

BOOTFW_INST_PKGS is being set in

BOOTFW_INST_PKGS="chroot $DESTDIR $FS_INST_PKG $FS_PKGS_CD_BOOTFW_DEPTHCHARGE"

and the variable is being consumed in

$BOOTFW_INST_PKGS

However, DESTDIR is still undefined when BOOTFW_INST_PKGS is being set, resulting to invalid chroot command.

DESTDIR is set as late as

DESTDIR=/mnt

I noticed this was wrong when installing last night, and fixed it in #96 by moving DESTDIR up before the BOOTFW_INST_PKGS.