From 70b689e6bf00338f55ae2daf1c2d0c2d972e00e8 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 5 Oct 2020 15:34:46 +0200 Subject: setup2hd: add option to install regular Slackware via network mirror The setup2hd script is a modified Slackware installer. For liveslak I had originally removed all the usual SOURCE selections and only allowed for the installation of the Live OS to harddisk. However, requests were sent to also support a regular installation of Slackware using the Live ISO. That is why I have now re-added all the Slackware network install choices (via NFS, HTTP, FTP or Samba mirror). I still left out the Slackware installation using local media; the Live ISO does not contain regular Slackware packages so that would not make sense. --- setup2hd.local | 81 ---------------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 setup2hd.local (limited to 'setup2hd.local') diff --git a/setup2hd.local b/setup2hd.local deleted file mode 100644 index 8edb7a5..0000000 --- a/setup2hd.local +++ /dev/null @@ -1,81 +0,0 @@ -# ------------------------------------------------------------------------- -# Live OS Post Install routine. -# This is where you can override the default post-installation routine -# by (re-)defining the function "live_post_install()". -# ------------------------------------------------------------------------- - -# The example below is an extension to what the setup2hd script does. -# By default, setup2hd will only copy a few customizations from the Live OS -# to the hard drive. Things that do *not* get installed are (among others): -# - the 'live' user plus homedirectory -# - the runlevel (Slackware Live starts in runlevel 4) -# - sudo and su configuration -# These *are* copied in the example below. - -live_post_install () { - # Re-use some of the custom configuration from 0099-@DISTRO@_zzzconf-*.sxz - # (some of these may not be present but the command will not fail): - dialog --title "POST-INSTALL @UDISTRO@ LIVE (@LIVEDE@) DATA" --infobox \ - "\nCopying Live modifications to hard disk ..." 5 65 - # Do not overwrite a custom keymap: - if [ ! -f $T_PX/etc/rc.d/rc.keymap ]; then - unsquashfs -f -dest $T_PX \ - /mnt/livemedia/@LIVEMAIN@/system/0099*zzzconf*.sxz \ - /etc/rc.d/rc.keymap - fi - unsquashfs -f -dest $T_PX \ - /mnt/livemedia/@LIVEMAIN@/system/0099*zzzconf*.sxz \ - /etc/X11/xdm/liveslak-xdm \ - /etc/X11/xorg.conf.d/30-keyboard.conf \ - /etc/group \ - /etc/hardwareclock \ - /etc/inittab \ - /etc/localtime* \ - /etc/passwd \ - /etc/profile.d/lang.sh \ - /etc/rc.d/rc.font \ - /etc/rc.d/rc.gpm \ - /etc/shadow \ - /etc/skel \ - /etc/slackpkg \ - /etc/suauth \ - /etc/sudoers \ - /etc/vconsole.conf \ - /home/live - # Point xdm to the custom /etc/X11/xdm/liveslak-xdm/xdm-config: - sed -i ${T_PX}/etc/rc.d/rc.4 -e 's,bin/xdm -nodaemon,& -config /etc/X11/xdm/liveslak-xdm/xdm-config,' - # Remove the marker file from the filesystem root: - rm -f ${T_PX}/@MARKER@ - - cat << EOF > $TMP/tempmsg - - @CDISTRO@ Live Edition (@LIVEDE@) has been installed to your hard drive! - We installed the ${ACT_MODS} active modules (out of ${TOT_MODS} available). - After rebooting, your installed computer will look exactly like the Live OS. - - After finishing system configuration and before rebooting, you can add any further Live modules from /@LIVEMAIN@/addons/ and /@LIVEMAIN@/optional/ to your hard drive, using a command similar to this: - # unsquashfs -f -dest $T_PX /mnt/livemedia/@LIVEMAIN@/addons/mymodule.sxz - -EOF - dialog --title "POST INSTALL HINTS AND TIPS" --msgbox "`cat $TMP/tempmsg`" \ - 20 65 - rm $TMP/tempmsg - - # Setting MAINSELECT to "CONFIGURE" will call the usual Slackware - # setup scripts next (timeconfig, netconfig, mouseconfig etc...). - # If you want to skip all that and do your own config instead, - # add it right below these lines and then set MAINSELECT to - # "EXIT" instead of "CONFIGURE". - - # ... one thing you must NOT FORGET TO DO is: - #printf "%-16s %-16s %-11s %-16s %-3s %s\n" "#/dev/cdrom" "/mnt/cdrom" "auto" "noauto,owner,ro,comment=x-gvfs-show" "0" "0" >> $T_PX/etc/fstab - #printf "%-16s %-16s %-11s %-16s %-3s %s\n" "/dev/fd0" "/mnt/floppy" "auto" "noauto,owner" "0" "0" >> $T_PX/etc/fstab - #printf "%-16s %-16s %-11s %-16s %-3s %s\n" "devpts" "/dev/pts" "devpts" "gid=5,mode=620" "0" "0" >> $T_PX/etc/fstab - #printf "%-16s %-16s %-11s %-16s %-3s %s\n" "proc" "/proc" "proc" "defaults" "0" "0" >> $T_PX/etc/fstab - #printf "%-16s %-16s %-11s %-16s %-3s %s\n" "tmpfs" "/dev/shm" "tmpfs" "defaults" "0" "0" >> $T_PX/etc/fstab - - # Remember, change to "EXIT" if you want to skip Slackware's post-config! - MAINSELECT="CONFIGURE" - -} # END live_post_install() - -- cgit v1.2.3