Issue520

Title boot option `file=foobar.tbz' doesn't work (grml 1.1)
Priority bug Status resolved
Superseder suggested re-work of myconfig, GRMLCFG, config, debs and scripts
View: 715
Nosy List mika, mru, zot
Assigned To mika Topics

Created on 2008-09-06.13:50:18 by zot, last changed 2009-10-24.15:31:42 by mru.

Files
File name Uploaded Type Edit Remove
0001-Get-always-the-right-boot-parameter.patch mru, 2009-02-12.17:31:46 text/x-diff
0002-Refactored-config-unpacking.patch mru, 2009-02-12.17:32:27 text/x-diff
zot-GRMLCFG.tar.bz2 zot, 2008-09-09.14:11:49 application/octet-stream
Messages
msg1857 (view) Author: mika Date: 2009-02-12.21:02:46
Michael Prokop <mika@grml.org> has uploaded a package that may fix your bug.
Please test the package and inform the maintainer whether
version 0.8.17 of grml-autoconfig works as intended or not.

Thank you

The changelog is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 12 Feb 2009 19:37:15 +0100
Source: grml-autoconfig
Binary: grml-autoconfig
Architecture: source all
Version: 0.8.17
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-autoconfig - main bootup process of a grml system
Changes: 
 grml-autoconfig (0.8.17) unstable; urgency=low
 .
   [ Michael Prokop ]
   * Some updates in config_time(), *many* thanks to Thomas Lehmann:
     - improve localtime / utc / gmt handling
     - use UTC="--localtime" by default
     - evaluate tz bootoption in this function as well
     - execute hwclock even if /dev/rtc isn't available, just display
       warning regarding the lack of /dev/rtc
   [ Ulrich Dangel ]
   * Refactored config unpacking config parameter will now be honored,
     e.g. config=foo.tbz myconfig=/dev/sda1 is now possible.
   * Get always the right boot parameter via /proc/cmdline.
     [Testing: issue520]
Checksums-Sha1: 
 ef7c7186cbfe7965a30ba02778df83085195ea11 886 grml-autoconfig_0.8.17.dsc
 ef5ad6230e1f82ffbbb0782e1636931a3cec56e2 59870 grml-autoconfig_0.8.17.tar.gz
 21bbdfebd006be709f5e3ce1cfbf4cb9d491a2a5 59014 grml-autoconfig_0.8.17_all.deb
Checksums-Sha256: 
 1160044ffcf7ece21dcecd3028a0c7d2e49dd39c07c6db5cd08ea57881df2eb2 886 grml-autoconfig_0.8.17.dsc
 4546f7962a4be717d94bde6136a11f415b0c76decbc025ce134a2490ffabdf61 59870 grml-autoconfig_0.8.17.tar.gz
 45fb7e75ee950cfec3fbe233d64ad4e9211677a5e5d71a4da04a685d4cd15125 59014 grml-autoconfig_0.8.17_all.deb
Files: 
 a3a5165f4edebf490b3ff8dacbebc9f2 886 grml optional grml-autoconfig_0.8.17.dsc
 7ee3028f203328bd70753f4b5368e9d9 59870 grml optional grml-autoconfig_0.8.17.tar.gz
 89da5621b1b44efb7a8ee883d8bb12b5 59014 grml optional grml-autoconfig_0.8.17_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJlI3B2N9T+zficugRAgSEAJ9le1mVirb8NjIQYplBBTGYLND7SQCeNHSz
YrSB2xkKCdA93t5ufFDxq/4=
=k843
-----END PGP SIGNATURE-----
msg1832 (view) Author: mru Date: 2009-02-12.17:32:27
second patch for do the stuff right (hopefully) ;
msg1831 (view) Author: mru Date: 2009-02-12.17:31:46
It does not what expected, but following patch should fix the behavior
getbooparam is fixed with the first patch, refactoring with the second
msg1483 (view) Author: mika Date: 2008-09-17.19:18:24
* zot <bts@bts.grml.org> [20080917 18:39]:

> Yes, using a 'config.tbz' works, but I need more than one configuration
> on a partition, so it would be simpler to use more files like 'foo.tbz', 'bar.tbz', etc.
> selectable on the boot-commandline(I hardcode this on personalized CDs).
> The GRMLCFG label isn't really needed to use the 'config.tbz'(it works without that label): 
> it should be needed only for those using autoconfig. In fact I want to use other labels 
> on my partitions for other purposes and I don't want to use a removable media 
> (laptop w/o floppy, the HD partition saves some hassle for non tech users).

Alright, I see what you need.

Does 'grml config=foo.tbz myconfig=/dev/hda1' do what you expect?
(If not, it needs to be fixed. ;))

mfg,
-mika-
msg1479 (view) Author: zot Date: 2008-09-17.16:39:37
Yes, using a 'config.tbz' works, but I need more than one configuration
on a partition, so it would be simpler to use more files like 'foo.tbz', 'bar.tbz', etc.
selectable on the boot-commandline(I hardcode this on personalized CDs).
The GRMLCFG label isn't really needed to use the 'config.tbz'(it works without that label): 
it should be needed only for those using autoconfig. In fact I want to use other labels 
on my partitions for other purposes and I don't want to use a removable media 
(laptop w/o floppy, the HD partition saves some hassle for non tech users).


>[...] so if you label that device with GRMLCFG
>and name your configuration file 'config.tbz' it should work for you without
>any further manual intervention, right?

Regards,
Diego

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
msg1475 (view) Author: mika Date: 2008-09-15.22:55:19
Hm I see:

 * Successfully mounted /dev/hda3 to /mnt/grml (readonly). [ ok ]
 *   Sorry, could not find file config.tbz on device with label GRMLCFG. [ !! ]
[...]
 * Searching for device(s) labeled with GRMLCFG. [ ok ]
 *   Floppy device detected. Trying to access floppy disk. (Disable this via 
boot option: noautoconfig)
 *   No devices with label GRMLCFG found. [ ok ]

So it seems you are using 'myconfig=/dev/hda1' but you don't have a file named 
config.tbz on that device, right? It's continuing searching for a file system 
with label GRMLCFG later on as well, so if you label that device with GRMLCFG 
and name your configuration file 'config.tbz' it should work for you without 
any further manual intervention, right?

thanks && regards,
-mika-
msg1474 (view) Author: zot Date: 2008-09-09.14:11:49
grml-cheatcodes.txt doesn't mention that is required a particular label on the
partition, and anyway it has already another(=>? I cannot use that partition(?)).
See the file for details.
msg1468 (view) Author: zot Date: 2008-09-06.13:50:17
used with myconfig=/dev/hda1 , it keeps searching for the default `config.tbz'
History
Date User Action Args
2009-10-24 15:31:42mrusetstatus: testing -> resolved
nosy: mika, mru, zot
2009-10-24 15:31:34mrusetnosy: mika, mru, zot
superseder: + suggested re-work of myconfig, GRMLCFG, config, debs and scripts
2009-02-12 21:02:47mikasetstatus: in-progress -> testing
nosy: mika, mru, zot
messages: + msg1857
2009-02-12 17:32:27mrusetfiles: + 0002-Refactored-config-unpacking.patch
nosy: mika, mru, zot
messages: + msg1832
2009-02-12 17:31:48mrusetstatus: need-eg -> in-progress
nosy: + mru
messages: + msg1831
files: + 0001-Get-always-the-right-boot-parameter.patch
2008-09-17 19:18:25mikasetmessages: + msg1483
2008-09-17 16:39:40zotsetmessages: + msg1479
2008-09-15 22:55:21mikasetstatus: chatting -> need-eg
assignedto: mika
messages: + msg1475
nosy: + mika
2008-09-09 14:11:50zotsetfiles: + zot-GRMLCFG.tar.bz2
status: unread -> chatting
messages: + msg1474
2008-09-06 13:58:19zotsettitle: boot option `file=foobar.tbz' don't work (grml 1.1) -> boot option `file=foobar.tbz' doesn't work (grml 1.1)
2008-09-06 13:50:18zotcreate