diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-03 08:13:35 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-03 08:13:35 +0200 |
commit | 710e1b013179ce3c2c8d53f1be3403e2d9453eeb (patch) | |
tree | d95a6a9ef128ecbd7b248a29229f5634d3384fda /scripts/config-no-initial-setup.sh | |
parent | dfce9b23fef3816225e84b46753220257cbc3bc9 (diff) | |
download | imagefish-710e1b013179ce3c2c8d53f1be3403e2d9453eeb.tar.gz |
config tweaks
Diffstat (limited to 'scripts/config-no-initial-setup.sh')
-rwxr-xr-x | scripts/config-no-initial-setup.sh | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/scripts/config-no-initial-setup.sh b/scripts/config-no-initial-setup.sh index f65e4d3..33dce21 100755 --- a/scripts/config-no-initial-setup.sh +++ b/scripts/config-no-initial-setup.sh @@ -5,17 +5,7 @@ if test "$image" = ""; then exit 1 fi -WORK="${TMPDIR-/tmp}/${0##*/}-$$" -mkdir "$WORK" || exit 1 -trap 'rm -rf "$WORK"' EXIT - -cat <<EOF > "$WORK/script" - -# turn off initial-setup -delete /etc/systemd/system/multi-user.target.wants/initial-setup.service -delete /etc/systemd/system/graphical.target.wants/initial-setup.service - -EOF - set -ex -virt-customize -a "$image" --no-network --commands-from-file "$WORK/script" +virt-customize -a "$image" --no-network \ + --delete /etc/systemd/system/multi-user.target.wants/initial-setup.service \ + --delete /etc/systemd/system/graphical.target.wants/initial-setup.service |