X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-begin;h=a7622848af7171f3437c9f02dcba2c3eb2ef2f1a;hb=c2bf18a9e27233fc9b57450455969fc9e53508b8;hp=69bbec775c598ec5e687fb35f95f4e58436aec4a;hpb=98bcf504ce2a56eeb862a59477cfb897a2ef613c;p=distro-setup diff --git a/distro-begin b/distro-begin index 69bbec7..a762284 100755 --- a/distro-begin +++ b/distro-begin @@ -590,7 +590,7 @@ if has_btrfs || home_network; then [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR -for dir in /i /mnt/iroot /k /kr; do +for dir in /i /mnt/iroot /k /kr /w; do if ! mountpoint $dir &>/dev/null && \ awk '{print $2}' /etc/fstab | grep -xF $dir &>/dev/null; then if awk '{print $3}' /etc/fstab | grep -xF nfs &>/dev/null; then @@ -612,6 +612,10 @@ Type=oneshot ExecStart=/root/imount [Install] +# note /kr needs networking, this target is the simplest way to +# time it when the network should be up, but not do something +# dumb like delay startup until the network is up. It happens +# at some time after network.target WantedBy=multi-user.target EOF sudo systemctl daemon-reload # needed if the file was already there