summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh (follow)
Commit message (Expand)AuthorAgeFilesLines
* iso2usb.sh: really wipe the drive first...When a Live ISO is first copied to a USB drive using 'cp' or 'dd' and next you use iso2usb.sh to remake the USB drive into a persistent Live OS, traces of the old ISO9660 filesystem will remain and this confuses grub when you boot on a UEFI computer. So we will additionally use 'wipefs' to erase traces of filesystems. In the help text, make it clear that '-c' and '-C' accept only integer numbers for sizes and percentages. This is caused by a bash limitation in arithmetics. Eric Hameleers2020-06-251-4/+10
* iso2usb.sh: allow custom parition sizing...Some people asked if it could be possible to reserve space on the USB stick for a custom additional 4th partition, to be used freely and which will not get touched by liveslak. So, there is a new parameter to the script now, here is the help text: -y|--layout <x,x,x,x> Specify partition layout and sizes (in MB). Default values: '$DEF_LAYOUT' for 3 partitions, the '-1' value for partition 3 meaning 'use all remaining space', and an empty 4th value means 'do not reserve free space for a custom 4th partition'. The default layout of the USB stick remains: partition 1 (1MB), partition 2 (100 MB) partition 3 (claim all free space - specified as 0 MB). The script allows for an amount of free space to be left at the end (partition 4, unused by liveslak) in case you need this: This translates to the following DEF_LAYOUT variable value: DEF_LAYOUT="1,100,-1," Eric Hameleers2020-03-311-6/+64
* Remove '--no-absolute-filenames' from cpio invocations...Since cpio 2.13, this option strips '/' and '../' from symbolic and hard links during extraction of a cpio archive like our initramfs. This is implemented as a fix for CVE-2015-1197 but breaks the initrd. And leaving out this option does not have the adverse effect I always thought it would have... archive extraction is still done into the current directory and not in the filesystem root. Eric Hameleers2019-11-201-1/+1
* iso2usb.sh: fix logic for finding and writing gptmbr.bin to the device Eric Hameleers2019-11-191-9/+14
* iso2usb.sh: fix the "refresh" case Eric Hameleers2019-05-111-1/+5
* iso2usb.sh: use the OS to find partition names...This should allow usage of external storage devices like SD cards, whose partition naming conventions are different from generic USB devices. E.g. /dev/mmcblk0p1 is the first partition of /dev/mmcblk0 (note the 'p'). Eric Hameleers2019-05-051-29/+37
* iso2usb.sh: warn and exit if zstd support is missing Eric Hameleers2019-02-161-1/+6
* iso2usb.sh: fix syntax for '^64bit' option to tune2fs command Eric Hameleers2017-10-111-2/+2
* iso2usb.sh: be a bit more verbose when waiting for USB insertion Eric Hameleers2017-10-111-1/+1
* iso2usb.sh: quell a couple of harmless warnings Eric Hameleers2017-10-111-4/+4
* iso2usb.sh: be gentle with old non-Slackware 32bit distros Eric Hameleers2017-10-011-2/+8
* iso2usb.sh - add options to list or scan for removable devices...Two new script options were added: -d|--devices List removable devices on this computer. -s|--scan Scan for insertion of new USB device instead of providing a devicename (using option '-o'). Eric Hameleers2017-09-191-2/+65
* iso2usb.sh - some minor tweaks Eric Hameleers2017-09-191-4/+6
* Prefer syslinux files available on the computer....We will use our own copy of syslinux files only as a fallback, because it is safer to use the versions of files that come with syslinux on the computer which runs iso2usb.sh. Eric Hameleers2017-09-101-3/+21
* New syslinux requirement: disable 64bit feature in mke2fs command...See http://www.syslinux.org/wiki/index.php?title=Filesystem As of Syslinux 6.03, "pure 64-bits" compression/encryption is not supported. Modern mke2fs creates file systems with the metadata_csum and 64bit features enabled by default. Explicitly disable 64bit feature in the mke2fs command with '-O ^64bit'; otherwise, the syslinux bootloader (>= 6.03) will fail. Eric Hameleers2017-07-211-1/+7
* iso2usb.sh: add quotes around $SLISO to allow for spaces in te pathname Eric Hameleers2017-07-191-4/+4
* Add '2017' to the copyright statements. Eric Hameleers2017-01-231-1/+1
* iso2usb.sh: show a bit more version information during a refresh cycle. Eric Hameleers2016-11-091-2/+14
* iso2usb.sh: get rid of hard-coded pathnames and use $PATH to find programs. Eric Hameleers2016-11-081-26/+28
* iso2usb.sh: unsquashfs is not always needed. Eric Hameleers2016-08-151-3/+9
* iso2usb.sh: add safeguard against mistyping the LUKS passphrase. Eric Hameleers2016-08-041-8/+14
* iso2usb.sh: make the name of the '/home' LUKS container configurable....New parameter to the script: -l|--lukshome <name> Custom path to the containerfile for your LUKS encrypted /home (slhome by default). Note: not only (just as with the persistence container) can you choose a custom name for the the LUKS container file but you can also create it in a subdirectory instead of in the filesystem root now. Eric Hameleers2016-06-241-18/+44
* iso2usb.sh: fix a typo in a comment. Eric Hameleers2016-06-231-1/+1
* iso2usb.sh: try to fix custom persistence configuration. Eric Hameleers2016-06-211-3/+9
* Allow persistence and (luks) containers in subdirectories. Eric Hameleers2016-06-201-6/+28
* iso2usb.sh: fix for refreshing a USB stick with LUKS persistent container. Eric Hameleers2016-06-161-3/+9
* iso2usb.sh: added 'refresh' parameter to update an existing Live USB stick....-r|--refresh => Refresh an existing Live USB stick with new ISO content. The refresh option "-r" can be used when you have a Live USB stick and you want to update the liveslak files with new versions on an ISO image file which you downloaded/created. The USB stick will not be formatted in this case, and user modifications like LUKS-encrypted homedirectory or persistence data will not be touched. The "system" squashfs modules will be replaced with the versions on the ISO file and any squashfs module not present in the system/ directory of the ISO will be deleted. The "optional" and "addons" directories are treated a bit differently: The files in there that you added yourself will not be deleted when the content of these directories is refreshed with the content from the ISO (unless of course your added files have the same name as one of the files in the ISO). The content of the /boot and /EFI directories will both be replaced with whatever is on the ISO image. Eric Hameleers2016-06-151-96/+171
* iso2usb.sh: use "isoinfo" instead of "iso-info"....It appears that other distros do not always contain "iso-info" which is part of "libcdio". The "isoinfo" program ion the other hand, which is part of "cdrtools" is more widely used. Eric Hameleers2016-06-081-3/+2
* iso2usb.sh: script should be able to run on older OS-es too. Eric Hameleers2016-05-061-2/+6
* iso2usb.sh: show some progress info when copying files from ISO to USB. Eric Hameleers2016-05-051-2/+7
* iso2usb.sh: fix detection of UEFI support in the ISO image file. Eric Hameleers2016-04-221-5/+2
* iso2usb.sh: only umount if the directory was actually mounted. Eric Hameleers2016-04-151-3/+3
* iso2usb.sh: use XZ for compressing/decompressing the initrd. Eric Hameleers2016-04-131-3/+16
* Add support for 32-bit UEFI boot (disabled by default)....This requires functionality in grub which is currently not enabled in Slackware's grub package. If you want a 32-bit Live ISO that boots on UEFI computers, you need to recompile Slackware's grub with the patch for grub.SlackBuild which you can find in the ./patches subdirectory. Then you need to set the variable "EFI32" to "YES" in the 'make_slackware_live.sh' script and (re-)generate your 32-bit ISO. The resulting 32-bit Live ISO will be UEFI-bootable. Eric Hameleers2016-03-181-0/+3
* iso2usb.sh: add a new parameter "-C" for encrypted persistence file....Syntax of the new parameter: -C|--cryptpersistfile size|perc Explanation: Use a LUKS-encrypted 'persistence' file instead of a directory or an un-encrypted file (which is created using the "-P" parameter). The filename will be 'persistence.img' just like the unencrypted version. A numerical size in K,M,G or a percentage of available free space is needed as input value with the "-C" parameter. Eric Hameleers2016-02-151-10/+26
* iso2usb.sh: fix a logic error. Eric Hameleers2016-02-051-4/+8
* Add support for persistence using a loop-mounted container file....This adds an option to store persistent data in a container file instead of a directory in the USB stick's Linux filesystem. Theoretically, this would allow the Slackware Live files to be copied to a VFAT partition on a stick without erasing it, as long as the stick is made bootable and the Live kernel & initrd are added to the boot menu. To create a USB stick from the Live ISO which uses a persistence file instead of a persistence directory, run the 'iso2usb.sh' script with a new parameter: -P|--persistfile Use a 'persistence' container file instead of a directory (for use on FAT filesystem). The following example creates a 750 MB LUKS-encrypted container file 'slhome.img' which will contain /home ; as well as a file '/persistence.img' in the root of the USB's Linux partition which will be used to store the Live OS' persistent data: ./iso2usb.sh -i slackware64-live-current.iso -o /dev/sdX -c 750M -P NOTE: The persistence container file will be created as a 'sparse' file which starts as an empty file not using up any disk space, but is allowed to grow dynamically to consume a maximum value of 90% of the free disk space on the Linux partition of the USB stick. Eric Hameleers2016-01-291-37/+82
* Add support for a LUKS-encrypted /home in the USB Live version....Using iso2usb.sh script's new '-c' parameter, you can define the size for a container file in the root of the USB stick's Linux partition. - The container file will be loop-mounted and LUKS-encrypted and the Live OS will mount the filesystem inside the container on /home/. - The LUKS passphrase will be defined when executing the 'iso2usb.sh' script. - The original /home content of the ISO will be copied into the LUKS-encrypted container during execution of the 'iso2usb.sh' script. - If for whatever reason you do not want to unlock & mount the LUKS container during boot, you must add the boot parameter " luksvol= " to the syslinux or grub commandline. Eric Hameleers2016-01-221-33/+172
* Add 2016 in the copyright line. Eric Hameleers2016-01-151-1/+1
* Much enhanced iso2usb script....Two new parameters '--force' and '--persistence'. Read "usb2iso.sh --help". Size of the EFI partition was reduced from 200 to 100 MB. The wait-for-root time in the initrd.img file is changed for both BIOS and UEFI boot; this should make boot work out of the box for most computers. More robustness was added in handling race conditions. Only make the USB stick UEFI-bootable if the ISO file is capable of the same. Eric Hameleers2015-12-241-37/+88
* Stamp a VERSION number in the ISO, and to the USB partition. Eric Hameleers2015-12-241-1/+7
* Make the 'iso2usb.sh' script sudo-friendly. Eric Hameleers2015-11-291-27/+27
* iso2usb.sh: fix a minor typo. Eric Hameleers2015-11-291-1/+1
* Slackware Live Edition: initial commit....This is Beta 2. Read http://alien.slackbook.org/blog/slackware-live-edition-beta-2 for all the details. Beta2 Eric Hameleers2015-11-281-0/+312