summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-09-20 01:28:47 +0200
committerDirk von Suchodoletz2006-09-20 01:28:47 +0200
commit7452a498a36166447a5c54afc0aae44afb8e4200 (patch)
tree7b2157506e1fc13d14bf72afc5922ba7a24759d7 /tools
parentSmall fixes: scanner udev rule moved to the end of hwautocfg (wait for (diff)
downloadcore-7452a498a36166447a5c54afc0aae44afb8e4200.tar.gz
core-7452a498a36166447a5c54afc0aae44afb8e4200.tar.xz
core-7452a498a36166447a5c54afc0aae44afb8e4200.zip
Minor addons ... (and patch for run-init in combination with unionfs)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@383 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'tools')
-rw-r--r--tools/unionfs-run-init24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/unionfs-run-init b/tools/unionfs-run-init
new file mode 100644
index 00000000..af09bf00
--- /dev/null
+++ b/tools/unionfs-run-init
@@ -0,0 +1,24 @@
+Fix fuer UnionFS auf /
+Nun gibts einfach eine Erweiterung fuer das Klibc-Tool run-init:
+
+klibc1.3
+usr/kinit/run-init/runinitlib.c
+
+ /* Delete rootfs contents */
+ if ( nuke_dir("/") )
+ die("nuking initramfs contents");
+
+ /* wild guess and try&error */
+ if ( !lstat("/rorootfs", &rfs ) )
+ if ( mount("/rorootfs", "/", NULL, MS_MOVE, NULL) )
+ die("moving rorootfs");
+
+ /* Overmount the root */
+ if ( mount(".", "/", NULL, MS_MOVE, NULL) )
+ die("overmounting root");
+
+und vor dem Movemount fuer das eigentliche Root noch ein Movemount auf das
+drunterliegende Rootfs ... Laengeres Rumprobieren und nun scheint es
+erstmal zu klappen. Zur Zeit checkt der einfach nur (bis ich das raus
+hatte :-)) ob ein "/rorootfs" da ist und verschiebt das dann. Wenn nicht,
+bleibts so wie vorher.