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