nonsystemd.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff --git a/arch-nspawn.in b/arch-nspawn.in
  2. index cde1f60..03dc29c 100644
  3. --- a/arch-nspawn.in
  4. +++ b/arch-nspawn.in
  5. @@ -23,8 +23,8 @@ files=()
  6. mount_args=()
  7. usage() {
  8. - echo "Usage: ${0##*/} [options] working-dir [systemd-nspawn arguments]"
  9. - echo "A wrapper around systemd-nspawn. Provides support for pacman."
  10. + echo "Usage: ${0##*/} [options] working-dir [chroot-nspawn arguments]"
  11. + echo "A wrapper around chroot-nspawn. Provides support for pacman."
  12. echo
  13. echo ' options:'
  14. echo ' -C <file> Location of a pacman config file'
  15. @@ -124,10 +124,13 @@ fi
  16. copy_hostconf
  17. eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")"
  18. +case "$CARCH" in
  19. + armv7h) CARCH=armv7l;;
  20. +esac
  21. [[ -z $nosetarch ]] || unset CARCH
  22. -exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
  23. +exec ${CARCH:+setarch "$CARCH"} chroot-nspawn -q \
  24. -D "$working_dir" \
  25. -E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
  26. --register=no --keep-unit --as-pid2 \
  27. diff --git a/mkarchroot.in b/mkarchroot.in
  28. index 37f6802..d5dc9c7 100644
  29. --- a/mkarchroot.in
  30. +++ b/mkarchroot.in
  31. @@ -97,7 +97,7 @@ printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
  32. echo 'LANG=en_US.UTF-8' > "$working_dir/etc/locale.conf"
  33. echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"
  34. -systemd-machine-id-setup --root="$working_dir"
  35. +dbus-uuidgen --ensure="$working_dir/etc/machine-id"
  36. exec arch-nspawn \
  37. "${nspawn_args[@]}" \