summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/dnbd3-rootfs/hooks/mount-root-device.sh
blob: 702b63314092e41619410fe37e91678270be8858 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
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