mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-12 03:41:12 +00:00
Clean up dangling /boot/initrd.img symlink when needed
This commit is contained in:
parent
cf74474d4b
commit
549232f607
@ -130,6 +130,11 @@ if [ -f "${rootd}/etc/overlayroot.conf" ] &&
|
||||
} > "${rootd}/etc/overlayroot.local.conf"
|
||||
fi
|
||||
|
||||
# previous steps may have left a dangling symlink here with
|
||||
# SUBPROJECT=minimized and that breaks lb_chroot_hacks step
|
||||
if [ -L "${rootd}/boot/initrd.img" ] && [ ! -e "${rootd}/boot/initrd.img" ]; then
|
||||
rm "${rootd}/boot/initrd.img"
|
||||
fi
|
||||
|
||||
#### END COMMON ARCH FUNCTIONS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user