mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'fixed lilo config'
This commit is contained in:
parent
e37b92e5f0
commit
d8cc2390a5
1 changed files with 4 additions and 4 deletions
|
@ -1550,7 +1550,7 @@ getraidarrays() {
|
||||||
|
|
||||||
dolilo() {
|
dolilo() {
|
||||||
getrootfs
|
getrootfs
|
||||||
getraidarray
|
getraidarrays
|
||||||
if [ ! -f $DESTDIR/etc/lilo.conf ]; then
|
if [ ! -f $DESTDIR/etc/lilo.conf ]; then
|
||||||
DIALOG --msgbox "Error: Couldn't find $DESTDIR/etc/lilo.conf. Is LILO installed?" 0 0
|
DIALOG --msgbox "Error: Couldn't find $DESTDIR/etc/lilo.conf. Is LILO installed?" 0 0
|
||||||
return 1
|
return 1
|
||||||
|
@ -1563,12 +1563,12 @@ dolilo() {
|
||||||
if [ -n "${_uuid}" ]; then
|
if [ -n "${_uuid}" ]; then
|
||||||
_rootpart="/dev/disk/by-uuid/${_uuid}"
|
_rootpart="/dev/disk/by-uuid/${_uuid}"
|
||||||
fi
|
fi
|
||||||
sed -i "s|root=.*$|append=\"root=${_rootpart} rootfstype=$ROOTFS $RAIDARRAYS\"|g" $DESTDIR/etc/lilo.conf
|
sed -i "s|.*root=.*$|append=\"root=${_rootpart} rootfstype=$ROOTFS $RAIDARRAYS\"|g" $DESTDIR/etc/lilo.conf
|
||||||
else
|
else
|
||||||
sed -i "s|root=.*$|append=\"root=${PART_ROOT} rootfstype=$ROOTFS $RAIDARRAYS\"|g" $DESTDIR/etc/lilo.conf
|
sed -i "s|.*root=.*$|append=\"root=${PART_ROOT} rootfstype=$ROOTFS $RAIDARRAYS\"|g" $DESTDIR/etc/lilo.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
DEVS=$(findbootloaderdisks _)
|
DEVS="$(findbootloaderdisks _)"
|
||||||
DEVS="$DEVS $(findbootloaderpartitions _)"
|
DEVS="$DEVS $(findbootloaderpartitions _)"
|
||||||
if [ "$DEVS" = "" ]; then
|
if [ "$DEVS" = "" ]; then
|
||||||
DIALOG --msgbox "No hard drives were found" 0 0
|
DIALOG --msgbox "No hard drives were found" 0 0
|
||||||
|
|
Loading…
Reference in a new issue