X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/88d4c549e67f2e2e27d1d25199c7adf8ba078abd..10cac4edfc25c11d66c0950c22371c2f7a3fe615:/preseed/jessie/commands/late_commands.d/srv-home_symlink diff --git a/preseed/jessie/commands/late_commands.d/srv-home_symlink b/preseed/jessie/commands/late_commands.d/srv-home_symlink new file mode 100755 index 0000000..56911e7 --- /dev/null +++ b/preseed/jessie/commands/late_commands.d/srv-home_symlink @@ -0,0 +1,7 @@ +#!/bin/sh +echo "Making /home a bind-mount of /srv/home..." +mkdir -m755 /srv/home +cat >>/etc/fstab <<_eof +/srv/home /home auto defaults,bind 0 0 +_eof +mount --bind /srv/home /home