mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-07 17:21:55 +00:00
Revert "ubuntu-cpc: disable kernel and initramfs symlinks in /boot"
This reverts commit b20e894a9878837ed84f9db71997f68476d632b5.
This commit is contained in:
parent
7c302dc436
commit
a3307ebdb7
@ -124,21 +124,6 @@ fi
|
||||
|
||||
#### END COMMON ARCH FUNCTIONS
|
||||
|
||||
# For everything except s390x, disable kernel and initramfs symlinks
|
||||
case $arch in
|
||||
# On s390x the sipl.conf is static right now with just two boot options.
|
||||
s390x)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
find "${rootd}/boot" -type l -exec rm {} \;
|
||||
kernel_img_conf="${rootd}/etc/kernel-img.conf"
|
||||
if grep -q '^do_symlinks = ' "$kernel_img_conf" 2> /dev/null; then
|
||||
sed -i 's/^do_symlinks = .*$/do_symlinks = no/g' "$kernel_img_conf"
|
||||
else
|
||||
echo "do_symlinks = no" >> "$kernel_img_conf"
|
||||
fi
|
||||
|
||||
case $arch in
|
||||
# ARM, ppc, riscv64 and s390x images are special
|
||||
|
Loading…
x
Reference in New Issue
Block a user