diff options
Diffstat (limited to 'modules.d/dnbd3-rootfs/hooks/mount-root-device.sh')
-rwxr-xr-x | modules.d/dnbd3-rootfs/hooks/mount-root-device.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh b/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh new file mode 100755 index 00000000..6f31bbac --- /dev/null +++ b/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh @@ -0,0 +1,9 @@ +type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh + +source "/etc/openslx" +mount "$SLX_DNBD3_DEVICE_COW" "$NEWROOT" $SLX_MOUNT_ROOT_OPTIONS +if [ -n "$SLX_GENERATE_FSTAB_SCRIPT" ]; then + eval "$SLX_GENERATE_FSTAB_SCRIPT" +else + echo "" > "$NEWROOT/etc/fstab" +fi |