summaryrefslogtreecommitdiffstats
path: root/usb-and-pxe-installers/usbimg2disk.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2013-11-04 17:08:47 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 22:57:36 +0200
commit76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (patch)
tree9b98e6e193c7870cb27ac861394c1c4592850922 /usb-and-pxe-installers/usbimg2disk.sh
parent9664bee729d487bcc0a0bc35859f8e13d5421c75 (diff)
downloadcurrent-76fc4757ac91ac7947a01fb7b53dddf9a78a01d1.tar.gz
current-76fc4757ac91ac7947a01fb7b53dddf9a78a01d1.tar.xz
Slackware 14.1slackware-14.1
Mon Nov 4 17:08:47 UTC 2013 Slackware 14.1 x86_64 stable is released! It's been another interesting release cycle here at Slackware bringing new features like support for UEFI machines, updated compilers and development tools, the switch from MySQL to MariaDB, and many more improvements throughout the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to '')
-rw-r--r--usb-and-pxe-installers/usbimg2disk.sh28
1 files changed, 1 insertions, 27 deletions
diff --git a/usb-and-pxe-installers/usbimg2disk.sh b/usb-and-pxe-installers/usbimg2disk.sh
index df3f574fc..ec5a735ac 100644
--- a/usb-and-pxe-installers/usbimg2disk.sh
+++ b/usb-and-pxe-installers/usbimg2disk.sh
@@ -455,34 +455,8 @@ mkdir -p $MNTDIR2/syslinux
cp -R $MNTDIR1/* $MNTDIR2/syslinux/
rm -f $MNTDIR2/syslinux/ldlinux.sys
-# If we are creating a full Slackware installer, there is a lot more to do:
+# If we are creating a full Slackware installer, copy the package tree:
if [ "$FULLINSTALLER" = "yes" ]; then
- # Extract the Slackware initrd for modifications we have to do:
- echo "--- Extracting Slackware initrd.img..."
- ( cd ${MNTDIR3}/
- gunzip -cd ${MNTDIR2}/syslinux/initrd.img | cpio -i -d -H newc --no-absolute-filenames
- ) 2>>$LOGFILE
-
- # Modify installer files so that installing from USB stick will be easier:
- echo "--- Modifying installer files..."
- ( cd ${MNTDIR3}/
- # Try to automatically mount the installer partition:
- mkdir usbinstall
- echo "mount -t vfat -o ro,shortname=mixed \$(/sbin/blkid -t LABEL=$FATLABEL | cut -f1 -d:) /usbinstall 1>/dev/null 2>&1" >> etc/rc.d/rc.S
- # Adapt the dialogs so that pressing [OK] will be all there is to it:
- sed -i -e 's# --menu# --default-item 6 --menu#' usr/lib/setup/SeTmedia
- sed -i -e "s# 2> \$TMP/sourcedir# /usbinstall/$(basename $REPOSROOT)/$PKGDIR 2> \$TMP/sourcedir#" usr/lib/setup/INSdir
- FIXF=$(find usr/lib/setup -name SeTp*media)
- sed -i -e 's# --menu# --default-item 3 --menu#' $FIXF
- ) 2>>$LOGFILE
-
- # Recreate the initrd:
- echo "--- Gzipping the initrd image again:"
- chmod 0755 ${MNTDIR3}
- ( cd ${MNTDIR3}/
- find . |cpio -o -H newc |gzip > ${MNTDIR2}/syslinux/initrd.img
- ) 2>>$LOGFILE
-
# Copy Slackware package tree (no sources) to the USB disk -
# we already made sure that ${REPOSROOT} does not end with a '/'
echo "--- Copying Slackware package tree to the USB drive..."