aboutsummaryrefslogtreecommitdiffstats
path: root/patches/eliloconfig.patch
diff options
context:
space:
mode:
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
commit43a3f13acfe1ca7e9ca4a40eec31797482a8febb (patch)
treea81401f91067608b4b736ca9107605a93003d2b7 /patches/eliloconfig.patch
parent9077db7733e931e9d6e891d0e01d24159f8f4cbd (diff)
downloadliveslak-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/eliloconfig.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/eliloconfig.patch b/patches/eliloconfig.patch
new file mode 100644
index 0000000..8b5fb47
--- /dev/null
+++ b/patches/eliloconfig.patch
@@ -0,0 +1,25 @@
+--- eliloconfig.orig 2016-04-01 20:37:40.000000000 +0200
++++ eliloconfig 2016-11-12 01:32:24.804762277 +0100
+@@ -75,9 +75,9 @@
+ exit
+ fi
+
+-# If there's no vfat mounted on /boot/efi or /mnt/boot/efi, forget it:
++# If there's no vfat mounted on /boot/efi or $T_PX/boot/efi, forget it:
+ if ! mount | grep vfat | grep -wq /boot/efi ; then
+- if ! mount | grep vfat | grep -wq /mnt/boot/efi ; then
++ if ! mount | grep vfat | grep -wq $T_PX/boot/efi ; then
+ if [ "$T_PX" = "/" ]; then
+ echo "ERROR: No EFI System Partition mounted on /boot/efi."
+ fi
+@@ -90,8 +90,8 @@
+ EFI_DEVICE=$(mount | grep vfat | grep -w /boot/efi | cut -b 1-8)
+ EFI_PARTITION=$(mount | grep vfat | grep -w /boot/efi | cut -f 1 -d ' ' | cut -b 9- | tr -d [a-z])
+ else
+- EFI_DEVICE=$(mount | grep vfat | grep -w /mnt/boot/efi | cut -b 1-8)
+- EFI_PARTITION=$(mount | grep vfat | grep -w /mnt/boot/efi | cut -f 1 -d ' ' | cut -b 9- | tr -d [a-z])
++ EFI_DEVICE=$(mount | grep vfat | grep -w $T_PX/boot/efi | cut -b 1-8)
++ EFI_PARTITION=$(mount | grep vfat | grep -w $T_PX/boot/efi | cut -f 1 -d ' ' | cut -b 9- | tr -d [a-z])
+ fi
+
+ # There better be a kernel: