summaryrefslogtreecommitdiffstats
path: root/setup2hd
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-01-22 17:23:06 +0100
committer Eric Hameleers <alien@slackware.com>2017-01-22 17:23:06 +0100
commit7db353ccbcbdbe94bba7edfc0cc5a8364cb247ed (patch)
tree525bcecb5673093258944eb8d3be93a4007f03fa /setup2hd
parent83e928f040123f591f37b3d5c8162374ad3f7ec4 (diff)
downloadliveslak-7db353ccbcbdbe94bba7edfc0cc5a8364cb247ed.tar.gz
liveslak-7db353ccbcbdbe94bba7edfc0cc5a8364cb247ed.tar.xz
setup2hd: patch (e)liloconfig on the target to remove hardcoded /mnt
Diffstat (limited to 'setup2hd')
-rwxr-xr-xsetup2hd7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup2hd b/setup2hd
index eefb154..c0c18a5 100755
--- a/setup2hd
+++ b/setup2hd
@@ -285,6 +285,13 @@ EOF
fi
if [ "$MAINSELECT" = "CONFIGURE" ]; then
+ # Patch (e)liloconfig on the target systems to remove hardcoded /mnt:
+ if [ -f /sbin/liloconfig -a -f $T_PX/sbin/liloconfig ]; then
+ cat /sbin/eliloconfig > $T_PX/sbin/liloconfig
+ fi
+ if [ -f /usr/sbin/eliloconfig -a -f $T_PX/usr/sbin/eliloconfig ]; then
+ cat /usr/sbin/eliloconfig > $T_PX/usr/sbin/eliloconfig
+ fi
SeTconfig
REPLACE_FSTAB=Y
if [ -r $TMP/SeTnative ]; then