fix: live-boot check — scripts/live is a file not a directory
The verification used [ -d ] but live-boot-initramfs-tools installs scripts/live as a regular file, not a directory. Changed to [ -e ]. The chroot install was actually succeeding — only the check was wrong. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c1ff912cb1
commit
0212bfdc1d
@ -494,7 +494,7 @@ if [ -f /installer/var/lib/apt/lists/*_Packages 2>/dev/null ]; then
|
||||
fi
|
||||
|
||||
# Verify live-boot hooks are in place
|
||||
if [ -d /installer/usr/share/initramfs-tools/scripts/live ]; then
|
||||
if [ -e /installer/usr/share/initramfs-tools/scripts/live ]; then
|
||||
echo " [container] live-boot initramfs hooks: OK"
|
||||
else
|
||||
echo " [container] WARNING: live-boot hooks missing, trying dpkg extraction..."
|
||||
@ -503,7 +503,7 @@ else
|
||||
dpkg-deb -x "$deb" /installer/ 2>/dev/null || true
|
||||
done
|
||||
rm -f live-boot*.deb 2>/dev/null || true
|
||||
if [ -d /installer/usr/share/initramfs-tools/scripts/live ]; then
|
||||
if [ -e /installer/usr/share/initramfs-tools/scripts/live ]; then
|
||||
echo " [container] live-boot hooks installed via dpkg extraction: OK"
|
||||
else
|
||||
echo " [container] FATAL: Could not install live-boot hooks!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user