X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/c4c55ce4a7853887d746ab8ad7471bf947b1bafc..9e1c6791342fb991a4b7e8d67b37a56765312322:/preseed/stretch/commands/late_commands.d/srv-home_symlink diff --git a/preseed/stretch/commands/late_commands.d/srv-home_symlink b/preseed/stretch/commands/late_commands.d/srv-home_symlink new file mode 100755 index 0000000..56911e7 --- /dev/null +++ b/preseed/stretch/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