[Git-commits] [grml/grml2usb] 5251ce: Fix error message.

Michael Prokop mika at grml.org
Tue Sep 11 17:01:47 CEST 2012


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml2usb
  Commit: 5251ce1484272c48247551148a59dbd6bb13f6f1
      https://github.com/grml/grml2usb/commit/5251ce1484272c48247551148a59dbd6bb13f6f1
  Author: Lukas Prokop <admin at lukas-prokop.at>
  Date:   2012-09-11 (Tue, 11 Sep 2012)

  Changed paths:
    M grml2usb

  Log Message:
  -----------
  Fix error message.

Replace

| root at grml ~ # grml2usb --fat16 /live/image /dev/sdb1 --bootoptions="ssh=secret" --grub
| Executing grml2usb version 0.13.0
| Are you sure you want to format the specified partition with fat16? y/N y
| Note: you can skip this question using the option --force
| Formating partition with fat16 filesystem
| mkfs.vfat 3.0.13 (30 Jun 2012)
| Using /live/image as install base
| Error: could not find grml-version file.
| Traceback (most recent call last):
|   File "/usr/sbin/grml2usb", line 1738, in <module>
|     main()
|   File "/usr/sbin/grml2usb", line 1715, in main
|     install(iso, device)
|   File "/usr/sbin/grml2usb", line 1444, in install
|     install_grml(iso_mountpoint, device)
|   File "/usr/sbin/grml2usb", line 1478, in install_grml
|     grml_flavours = identify_grml_flavour(mountpoint)
|   File "/usr/sbin/grml2usb", line 1112, in identify_grml_flavour
|     raise
| TypeError: exceptions must be old-style classes or derived from
| BaseException, not NoneType
| 1 root at grml ~ #

with

| root at grml ~ # grml2usb --fat16 /live/image /dev/sdb1 --bootoptions="ssh=secret" --grub
| Executing grml2usb version 0.13.0
| Are you sure you want to format the specified partition with fat16? y/N y
| Note: you can skip this question using the option --force
| Formating partition with fat16 filesystem
| mkfs.vfat 3.0.13 (30 Jun 2012)
| Using /live/image as install base
| Error: could not find grml-version file.
| Cleaning up before exiting...
| 1 root at grml ~ #


  Commit: cf525c6031463d42ed8c7f9b84d83e3b2c36f600
      https://github.com/grml/grml2usb/commit/cf525c6031463d42ed8c7f9b84d83e3b2c36f600
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-09-11 (Tue, 11 Sep 2012)

  Changed paths:
    M grml2usb

  Log Message:
  -----------
  Exit with better error message if running with toram=... and invoking with /live/image

If running in RAM mode without all the files in /live/image
(happens if using boot option "toram=....squashfs", but NOT when
using just "toram"!) then there are several files missing. We
could use kernel + initrd from /boot, but files like logo.16
aren't available at all. Inform the user about this situation and
possible workarounds.


Compare: https://github.com/grml/grml2usb/compare/7e6faf116062...cf525c603146


More information about the Git-commits mailing list