diff options
author | Eric Hameleers <alien@slackware.com> | 2016-11-16 01:23:01 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-11-16 01:23:01 +0100 |
commit | 43a3f13acfe1ca7e9ca4a40eec31797482a8febb (patch) | |
tree | a81401f91067608b4b736ca9107605a93003d2b7 /patches/liloconfig.patch | |
parent | 9077db7733e931e9d6e891d0e01d24159f8f4cbd (diff) | |
download | liveslak-43a3f13acfe1ca7e9ca4a40eec31797482a8febb.tar.gz liveslak-43a3f13acfe1ca7e9ca4a40eec31797482a8febb.tar.xz |
(e)liloconfig need patching to make them work properly on Slackware Live.
The cause is the use of hard-coded '/mnt' instead of using $T_PX variable.
In Slackware's official installer, the computer's hard disk is always mounted
at /mnt so that there is no apparent issue.
Slackware Live's 'setup2hd' however, needs to mount the hard disk on /setup2hd
because /mnt is already used.
Diffstat (limited to '')
-rw-r--r-- | patches/liloconfig.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/liloconfig.patch b/patches/liloconfig.patch new file mode 100644 index 0000000..6a0e96c --- /dev/null +++ b/patches/liloconfig.patch @@ -0,0 +1,22 @@ +--- liloconfig.orig 2016-07-12 01:21:03.000000000 +0200 ++++ liloconfig 2016-11-12 11:57:41.585974417 +0100 +@@ -767,7 +767,7 @@ + + # If we're installing from the umsdos.gz rootdisk, suggest skipping LILO: + if [ ! "$T_PX" = "/" ]; then +- if mount | grep " on /mnt " | grep umsdos 1> /dev/null 2> /dev/null ; then ++ if mount | grep " on $T_PX " | grep umsdos 1> /dev/null 2> /dev/null ; then + dialog --title "SKIP LILO CONFIGURATION? (RECOMMENDED)" --yesno "Since \ + you are installing to a FAT partition, it's suggested that you do not \ + configure LILO at this time. (Instead, use your bootdisk. For booting \ +@@ -1236,8 +1236,8 @@ + if [ -r $TMP/lilo.conf ]; then + dialog --title "YOUR NEW /etc/lilo.conf" --textbox "$TMP/lilo.conf" 22 70 + else +- if [ -r /mnt/etc/lilo.conf ]; then +- dialog --title "YOUR OLD /etc/lilo.conf" --textbox "/mnt/etc/lilo.conf" 22 70 ++ if [ -r $T_PX/etc/lilo.conf ]; then ++ dialog --title "YOUR OLD /etc/lilo.conf" --textbox "$T_PX/etc/lilo.conf" 22 70 + elif [ "$T_PX" = "/" -a -r /etc/lilo.conf ]; then + dialog --title "YOUR OLD /etc/lilo.conf" --textbox "/etc/lilo.conf" 22 70 + else |