summaryrefslogtreecommitdiff
path: root/9_resync.sh
blob: ed2dd131d090c70615f1ee9ee16ac001ddd4eacd (plain)
  1. #!/bin/sh
  2. set -e
  3. . ./config-DEFAULTS || exit 1
  4. . ./config-HOST || exit 1
  5. . ./config-TARGET || exit 1
  6. . ./config-MANDATED || exit 1
  7. . ./functions || exit 1
  8. mount "$rootdev_host" "$mountpoint"
  9. rsync -av --delete --one-file-system "$mountpoint/"* "$targettemp/" --exclude 'etc/shadow*' --exclude 'etc/gshadow*' --exclude 'etc/ssh/ssh_host_*_key*' --exclude 'root/**' --dry-run
  10. '/root:[^:]*/root:'
  11. umount "$mountpoint"