summaryrefslogtreecommitdiffstats
path: root/testModule/hooks/cmdline/mark-root-device.sh
diff options
context:
space:
mode:
authortorben2015-05-07 23:33:05 +0200
committertorben2015-05-07 23:33:05 +0200
commitab7c2b5e09247b6b4935c11051f25a1114afad8d (patch)
tree1399ea9eb29806e2bd1929abed6855b82cd726f6 /testModule/hooks/cmdline/mark-root-device.sh
parentImprove docu. (diff)
parentstarted configuration stuff (diff)
downloadsystemd-init-ab7c2b5e09247b6b4935c11051f25a1114afad8d.tar.gz
systemd-init-ab7c2b5e09247b6b4935c11051f25a1114afad8d.tar.xz
systemd-init-ab7c2b5e09247b6b4935c11051f25a1114afad8d.zip
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'testModule/hooks/cmdline/mark-root-device.sh')
-rwxr-xr-xtestModule/hooks/cmdline/mark-root-device.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/testModule/hooks/cmdline/mark-root-device.sh b/testModule/hooks/cmdline/mark-root-device.sh
new file mode 100755
index 00000000..b7282521
--- /dev/null
+++ b/testModule/hooks/cmdline/mark-root-device.sh
@@ -0,0 +1,9 @@
+# set rootok and root as dracut expects them to be set by
+# the module preparing the root filesystem.
+#
+# Once the root filesystem is mounted per dnbd3 and
+# exported as qcow2 per nbd, /dev/root will be a symlink
+# to /dev/nbd0 as this is then our rootfs-device
+rootok=1
+root=block:/dev/root
+