mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
Fix check for multiple kernel versions
This commit is contained in:
parent
cb9d95f67b
commit
6c09d42d90
@ -283,7 +283,8 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
|
||||
chroot ${ROOT} update-initramfs -k "${KVER}" -u
|
||||
cp ${ROOT}/boot/initrd.img-"${KVER}" livecd.${FS}.initrd-"${SUBARCH}"
|
||||
done
|
||||
if [ "${KVERS% *}" = "$KVERS" ]; then
|
||||
NUMKVERS="$(set -- $KVERS; echo $#)"
|
||||
if [ "$NUMKVERS" = 1 ]; then
|
||||
# only one kernel
|
||||
SUBARCH="${KVERS#*-*-}"
|
||||
ln -s livecd.${FS}.initrd-"${SUBARCH}" livecd.${FS}.initrd
|
||||
|
Loading…
x
Reference in New Issue
Block a user