diff options
| author | Jonathan Bauer | 2015-05-27 16:32:57 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-05-27 16:32:57 +0200 |
| commit | 0abace2bbec9e17a3630c463e4e3c329c967334b (patch) | |
| tree | 986a9bebd62c2dd596c85bf44bbec68d00cccd13 /testModule/hooks/pre-pivot | |
| parent | removed hacked systemd rpms and grub2.conf (diff) | |
| download | systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.tar.gz systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.tar.xz systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.zip | |
restructuring & bit of documentation ;)
dracut module now in 'dnbd3-qcow2-rootfs'. ALLLLL dracut related stuff goes in here!
Diffstat (limited to 'testModule/hooks/pre-pivot')
| -rwxr-xr-x | testModule/hooks/pre-pivot/mount-tmp.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/testModule/hooks/pre-pivot/mount-tmp.sh b/testModule/hooks/pre-pivot/mount-tmp.sh deleted file mode 100755 index 3e702064..00000000 --- a/testModule/hooks/pre-pivot/mount-tmp.sh +++ /dev/null @@ -1,40 +0,0 @@ -# This script only checks if we found a usable partition for the -# future /tmp. The discovery of that partition is done by udev during -# the initqueue. If a valid partition is found (either GPT with the label -# OPENSLX_TMP or MBR with the type 0x44) its path will be written to -# /tmp/openslx.tmpdisk -OPENSLX_TMP_DISK_FLAG="/tmp/openslx.disk.tmp" - -if [ ! -e "$OPENSLX_TMP_DISK_FLAG" ]; then - warn "'$OPENSLX_TMP_DISK_FLAG' not found!" - warn "Systemd will manage $NEWROOT/tmp on its own." - # no partition for the future /tmp found, just - # let systemd manage it then (probably a tmpfs) - return 1 -fi - -# in /tmp/openslx.disk.tmp is the name of the device -# to mount as /tmp in the real system -# meaning we need to mount it to /sysroot/tmp here. - -OPENSLX_TMP_DISK_DEV="$(cat $OPENSLX_TMP_DISK_FLAG)" - -# sanity check: is the content a block device? -if [ ! -b "$OPENSLX_TMP_DISK_DEV" ]; then - warn "'$OPENSLX_TMP_DISK_DEV' appears not to be a block device!" - warn "Systemd will manage $NEWROOT/tmp on its own." - return 1 -fi - -# all good, keep on -if ! mount -t auto "$OPENSLX_TMP_DISK_DEV" $NEWROOT/tmp; then - # something else went wrong :( - warn "Mounting '$OPENSLX_TMP_DISK_DEV' to '$NEWROOT/tmp' failed with: $!" - warn "Systemd will manage $NEWROOT/tmp on its own." - return 1 -fi - -# still here? mount worked wohoo -# set permissions -chmod a+rwxt $NEWROOT/tmp -return 0 |
