nonsystemd.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. diff --git a/INSTALL b/INSTALL
  2. index a74a376..3623f07 100644
  3. --- a/INSTALL
  4. +++ b/INSTALL
  5. @@ -71,7 +71,7 @@ main libretools subpackage:
  6. - GNU Make (only needed for `librefetch`)
  7. - ssh client (OpenSSH, only needed for `librerelease`)
  8. - rsync
  9. - - systemd-nspawn (for the chroot tools)
  10. + - chroot-nspawn (for the chroot tools)
  11. - tokyocabinet
  12. Configuration
  13. diff --git a/src/chroot-tools/arch-nspawn.in b/src/chroot-tools/arch-nspawn.in
  14. index 96b3e38..a7d7386 100644
  15. --- a/src/chroot-tools/arch-nspawn.in
  16. +++ b/src/chroot-tools/arch-nspawn.in
  17. @@ -18,8 +18,8 @@ working_dir=''
  18. files=()
  19. usage() {
  20. - echo "Usage: ${0##*/} [options] working-dir [systemd-nspawn arguments]"
  21. - echo "A wrapper around systemd-nspawn. Provides support for pacman."
  22. + echo "Usage: ${0##*/} [options] working-dir [chroot-nspawn arguments]"
  23. + echo "A wrapper around chroot-nspawn. Provides support for pacman."
  24. echo
  25. echo ' options:'
  26. echo ' -C <file> Location of a pacman config file'
  27. @@ -116,7 +116,7 @@ esac
  28. [[ -z $nosetarch ]] || unset CARCH
  29. -exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
  30. +exec ${CARCH:+setarch "$CARCH"} chroot-nspawn -q \
  31. -D "$working_dir" \
  32. -E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
  33. --register=no --keep-unit --as-pid2 \
  34. diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
  35. index b3cf041..5c3f8f2 100755
  36. --- a/src/chroot-tools/librechroot
  37. +++ b/src/chroot-tools/librechroot
  38. @@ -89,7 +89,7 @@ hack_arch_nspawn_flags() {
  39. prose 'Such a binfmt_misc entry is provided by the %s
  40. package. If you have it installed, but still see
  41. this message, you may need to restart %s.' \
  42. - qemu-user-static-binfmt systemd-binfmt.service
  43. + qemu-user-static-binfmt binfmt
  44. return $EXIT_NOTINSTALLED
  45. fi
  46. diff --git a/src/chroot-tools/mkarchroot.in b/src/chroot-tools/mkarchroot.in
  47. index 5165960..f6c6cfa 100644
  48. --- a/src/chroot-tools/mkarchroot.in
  49. +++ b/src/chroot-tools/mkarchroot.in
  50. @@ -90,7 +90,7 @@ printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
  51. echo 'LANG=en_US.UTF-8' > "$working_dir/etc/locale.conf"
  52. echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"
  53. -systemd-machine-id-setup --root="$working_dir"
  54. +dbus-uuidgen --ensure="$working_dir/etc/machine-id"
  55. exec "$(librelib chroot/arch-nspawn)" \
  56. ${nosetarch:+-s} \