[Grml] grml-halt on usb disk, for writing on unionfs
Michael Prokop
mika at grml.org
Mon May 21 12:24:22 CEST 2007
* pat <patritsch at gmx.ch> [20070521 11:15]:
> i have installed grml successfully on my cf card. i'm searching a way
> how to write my new configurations and files on the disk. i've found a
> way how to sync an unionfs with the originaly readonly mounted
> directory... but i'm a bit confused. i don't now how it should look like
> in the grml debian derivate.
JFYI: If it's just configuration files and stuff inside $HOME you
could use grml-saveconfig too, but your approach looks nice. :)
> here is the original debian wrap script:
> #!/bin/bash
> # halt-wrap
> mount -o remount rw /OLD_ROOT/real_root
> rsync --delete -abRvz --exclude "/sys" --exclude "/proc" --exclude
> "/dev" --exclude "/OLD_ROOT" / /OLD_ROOT/real_root/
> halt
> should i copy this script in /usr/sbin or put it in /etc/init.d/ and
> modifier the /etc/rc.conf ( or something i don't remember anymore...
> because i'm using the symlinking stuff )??
If you are using grml in live-mode (which you seem to do :)) you can
use for example the configuration framework with grml.sh. Just
place a grml.sh script on your device and check out the
possibilities you have in the docs:
http://grml.org/config/grml-config.html
If you have any further questions don't hesitate to ask. :)
JFYI: http://grml.org/faq/#init -> you mean /etc/runlevel.conf - but
notice that adjusting runlevel.conf usually does not work as
intented unless you are re-reading the file using 'telinit q'. ;)
regards,
-mika-
--
http://grml.org/ # Linux for texttool-users and sysadmins
http://wiki.grml.org/ # share your knowledge
http://grml.supersized.org/ # the grml development weblog
#grml @ irc.freenode.org # meet us on irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml/attachments/20070521/e8be38be/attachment-0004.pgp>
More information about the Grml
mailing list