From 43a3f13acfe1ca7e9ca4a40eec31797482a8febb Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 16 Nov 2016 01:23:01 +0100 Subject: (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. --- make_slackware_live.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 929369d..bf934fe 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1337,7 +1337,9 @@ if ls ${LIVE_ROOTDIR}/boot/vmlinuz-huge-* 1>/dev/null 2>/dev/null; then rm -r usr sbin cd - 1>/dev/null # Fix some occurrences of '/mnt' that should not be used in the Live ISO: - sed -i -e 's, /mnt, ${T_PX},g' -e 's,T_PX=/mnt,T_PX=/setup2hd,g' ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/* + sed -i -e 's, /mnt, ${T_PX},g' -e 's,=/mnt/,=${T_PX}/,g' -e 's,T_PX=/mnt,T_PX=/setup2hd,g' ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/* + patch ${LIVE_ROOTDIR}/usr/sbin/liloconfig ${LIVE_TOOLDIR}/patches/liloconfig.patch + patch ${LIVE_ROOTDIR}/usr/sbin/eliloconfig ${LIVE_TOOLDIR}/patches/eliloconfig.patch # Fix some occurrences of '/usr/lib/setup/' are covered by $PATH: sed -i -e 's,/usr/lib/setup/,,g' -e 's,:/usr/lib/setup,:/usr/share/${LIVEMAIN},g' ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/* # Add the Slackware Live HD installer: -- cgit v1.2.3