summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5d8f070)
In commit
0d878d3a679 of live-boot(-grml)
("Simplify mount point handling by using /run/live instead of /lib/live/mount")
the mountpath of /lib/live/mount/medium was moved towards /run/live/medium.
Commit
c6a17c7b41b of live-boot(-grml) provides a backward compatibility
rbind mount, but occasionally there seems to be a regression somewhere
during boot (see https://github.com/grml/live-boot-grml/issues/10), and
the rbind mount will be deprecated and removed before the bullseye
(Debian 11) release.
Layout changes over time:
* /cdrom for old linuxrc approach
* /live/image for initramfs layout until December 2012
* /lib/live/mount/medium for initramfs layout since December 2012
* /run/live/medium for initramfs layout since December 2018
Description: install Grml system / ISO to usb device
This script installs a Grml ISO to an USB device to be able
to boot from it. Make sure you have at least one Grml ISO
Description: install Grml system / ISO to usb device
This script installs a Grml ISO to an USB device to be able
to boot from it. Make sure you have at least one Grml ISO
- or a running Grml system (/lib/live/mount/medium) available.
+ or a running Grml system (/run/live/medium) available.
-USAGE = "Usage: %prog [options] <[ISO[s] | /lib/live/mount/medium]> </dev/sdX#>\n\
+USAGE = "Usage: %prog [options] <[ISO[s] | /run/live/medium]> </dev/sdX#>\n\
\n\
%prog installs Grml ISO[s] to an USB device to be able to boot from it.\n\
\n\
%prog installs Grml ISO[s] to an USB device to be able to boot from it.\n\
-Make sure you have at least one Grml ISO or a running Grml system (/lib/live/mount/medium),\n\
+Make sure you have at least one Grml ISO or a running Grml system (/run/live/medium),\n\
grub or syslinux and root access.\n\
\n\
Run %prog --help for usage hints, further information via: man grml2usb"
grub or syslinux and root access.\n\
\n\
Run %prog --help for usage hints, further information via: man grml2usb"
version_files = search_file('grml-version', mountpath, lst_return=True)
if not version_files:
version_files = search_file('grml-version', mountpath, lst_return=True)
if not version_files:
- if mountpath.startswith("/lib/live/mount/medium"):
+ if mountpath.startswith("/run/live/medium"):
logging.critical("Error: could not find grml-version file.")
logging.critical("Looks like your system is running from RAM but required files are not available.")
logging.critical("Please either boot without toram=... or use boot option toram instead of toram=...")
logging.critical("Error: could not find grml-version file.")
logging.critical("Looks like your system is running from RAM but required files are not available.")
logging.critical("Please either boot without toram=... or use boot option toram instead of toram=...")
def install_grml(mountpoint, device):
"""Main logic for copying files of the currently running Grml system.
def install_grml(mountpoint, device):
"""Main logic for copying files of the currently running Grml system.
- @mountpoint: directory where currently running live system resides (usually /lib/live/mount/medium)
+ @mountpoint: directory where currently running live system resides (usually /run/live/medium)
@device: partition where the specified ISO should be installed to"""
device_mountpoint = device
@device: partition where the specified ISO should be installed to"""
device_mountpoint = device
-------
ISO[s] should be the path to one or multiple grml-ISOs and/or the path to
-------
ISO[s] should be the path to one or multiple grml-ISOs and/or the path to
-the currently running live-system (being /lib/live/mount/medium).
+the currently running live-system (being /run/live/medium).
The device either might be a device name like /dev/sdX1 or a directory. When
specifying a device name the device is mounted automatically. When specifying a
The device either might be a device name like /dev/sdX1 or a directory. When
specifying a device name the device is mounted automatically. When specifying a
Install specified ISOs on device /dev/sdX1 for multibooting ISOs.
Install specified ISOs on device /dev/sdX1 for multibooting ISOs.
- # grml2usb /lib/live/mount/medium /dev/sdX1
+ # grml2usb /run/live/medium /dev/sdX1
Install currently running Grml live system on device /dev/sdX1.
Install currently running Grml live system on device /dev/sdX1.
- # grml2usb /lib/live/mount/medium /home/grml/grml64-full_2018.12.iso /dev/sdX1
+ # grml2usb /run/live/medium /home/grml/grml64-full_2018.12.iso /dev/sdX1
Install currently running Grml live system and the specified
ISO on device /dev/sdX1 for multibooting.
Install currently running Grml live system and the specified
ISO on device /dev/sdX1 for multibooting.
# TODO:
# * handling of --bootoptions=BOOTOPTIONS
# * $devices should also list directories as valid target
# TODO:
# * handling of --bootoptions=BOOTOPTIONS
# * $devices should also list directories as valid target
-# * as output before :device:.... ISO files and/or /lib/live/mount/medium should be suggested
+# * as output before :device:.... ISO files and/or /run/live/medium should be suggested
arguments=(
'--help[display help message and exit]:'
arguments=(
'--help[display help message and exit]:'