touch "$@"
stretch_%_config/: stretch_%_root/ ${CONFIG} permissions .FORCE
- btrfs subvolume delete "$@" || rm -r "$@" || true
+ [ -d "$@" ] && { btrfs subvolume delete "$@" || rm -r "$@"; }
btrfs subvolume snapshot "$<" "$@" || cp -rlv "$<" "$@"
cp -av $(addsuffix /*, ${CONFIG}) "$@"
-chroot "$@" locale-gen
-chroot "$@" update-locale
- chroot "$@" useradd -M -p "$$(printf %s\\n '${PASS}' |mkpasswd -m sha-256 -s)" '${USER}'
- for g in ${GROUPS}; do chroot "$@" adduser '${USER}' "$$g"; done
+ -chroot "$@" useradd -M -p "$$(printf %s\\n '${PASS}' |mkpasswd -m sha-256 -s)" '${USER}'
+ -for g in ${GROUPS}; do chroot "$@" adduser '${USER}' "$$g"; done
touch "$@"
stretch_%.squashfs: stretch_%_config/