mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
finished lts integration in boot loaders
This commit is contained in:
parent
79c5a8797e
commit
94bdeff70e
1 changed files with 4 additions and 2 deletions
|
@ -2556,7 +2556,9 @@ dolilo() {
|
||||||
sed -i "s|.*root=.*$|append=\"root=${PART_ROOT} rootfstype=$ROOTFS $RAIDARRAYS $CRYPTSETUP\"|g" $DESTDIR/etc/lilo.conf
|
sed -i "s|.*root=.*$|append=\"root=${PART_ROOT} rootfstype=$ROOTFS $RAIDARRAYS $CRYPTSETUP\"|g" $DESTDIR/etc/lilo.conf
|
||||||
fi
|
fi
|
||||||
sed -i "s|image=/boot/vmlinuz26|image=/boot/$KERNELPKG|g" $DESTDIR/etc/lilo.conf
|
sed -i "s|image=/boot/vmlinuz26|image=/boot/$KERNELPKG|g" $DESTDIR/etc/lilo.conf
|
||||||
sed -i "s|.*initrd=.*$|initrd=/boot/$KERNELPKG.img|g" $DESTDIR/etc/lilo.conf
|
sed -i "s|initrd=.*kernel26.*fallback.img$|initrd=/boot/$KERNELPKG-fallback.img|g" $DESTDIR/etc/lilo.conf
|
||||||
|
sed -i "s|initrd=.*kernel26.img$|initrd=/boot/$KERNELPKG.img|g" $DESTDIR/etc/lilo.conf
|
||||||
|
sed -i "s|initrd=.*kernel26-lts.img$|initrd=/boot/$KERNELPKG.img|g" $DESTDIR/etc/lilo.conf
|
||||||
fi
|
fi
|
||||||
DEVS="$(findbootloaderdisks _)"
|
DEVS="$(findbootloaderdisks _)"
|
||||||
DEVS="$DEVS $(findbootloaderpartitions _)"
|
DEVS="$DEVS $(findbootloaderpartitions _)"
|
||||||
|
@ -2596,7 +2598,7 @@ dogrub() {
|
||||||
FAIL_RAID=""
|
FAIL_RAID=""
|
||||||
FAIL_DM=""
|
FAIL_DM=""
|
||||||
if [ ! -f $DESTDIR/boot/grub/menu.lst ]; then
|
if [ ! -f $DESTDIR/boot/grub/menu.lst ]; then
|
||||||
DIALOG --msgbox "Error: Couldn't find $DESTDIR/boot/grub/menu.lst. Is GRUB installed?" 0 0
|
DIALOG --msgbox "Error: Couldn't find $DESTDIR/boot/grub/menu.lst. Is GRUB installed?" 0 0
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if ! [ "$(dmraid -r | grep ^no )" ]; then
|
if ! [ "$(dmraid -r | grep ^no )" ]; then
|
||||||
|
|
Loading…
Reference in a new issue