From d8cc2390a5534b806b88913f2ca7ed00c66d11c9 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 29 Mar 2009 18:15:40 +0200 Subject: [PATCH] 'fixed lilo config' --- usr/share/archboot/installer/setup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 5c6e00ecb..fe2cdd3e5 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -1550,7 +1550,7 @@ getraidarrays() { dolilo() { getrootfs - getraidarray + getraidarrays if [ ! -f $DESTDIR/etc/lilo.conf ]; then DIALOG --msgbox "Error: Couldn't find $DESTDIR/etc/lilo.conf. Is LILO installed?" 0 0 return 1 @@ -1563,12 +1563,12 @@ dolilo() { if [ -n "${_uuid}" ]; then _rootpart="/dev/disk/by-uuid/${_uuid}" 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 - 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 - DEVS=$(findbootloaderdisks _) + DEVS="$(findbootloaderdisks _)" DEVS="$DEVS $(findbootloaderpartitions _)" if [ "$DEVS" = "" ]; then DIALOG --msgbox "No hard drives were found" 0 0