diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2021-01-13 09:57:09 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2021-01-13 09:57:09 +0000 |
commit | 29a4a9a68123c8d642f1f948de98790f52c647f1 (patch) | |
tree | 649de580c9038feb0090c82bcfebcbf11c14368d /sysutils/debootstrap/files/patch-scripts_debian-common | |
parent | - Update WWW (diff) |
sysutils/debootstrap: add workarounds necessary for bootstrapping
Ubuntu Focal and Debian Sid.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=561450
Diffstat (limited to 'sysutils/debootstrap/files/patch-scripts_debian-common')
-rw-r--r-- | sysutils/debootstrap/files/patch-scripts_debian-common | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/debootstrap/files/patch-scripts_debian-common b/sysutils/debootstrap/files/patch-scripts_debian-common new file mode 100644 index 000000000000..50de93d375f1 --- /dev/null +++ b/sysutils/debootstrap/files/patch-scripts_debian-common @@ -0,0 +1,24 @@ +--- scripts/debian-common.orig 2021-01-12 21:19:09 UTC ++++ scripts/debian-common +@@ -200,10 +200,21 @@ echo \"Warning: Fake start-stop-daemon called, doing n + predep=$(without "$(without "$(resolve_deps $predep)" "$required")" "$done_predeps") + # XXX: progress is tricky due to how dpkg_progress works + # -- cjwatson 2009-07-29 ++ # This step sometimes fails due to some missing functionality in Linuxulator. Just ignore it. ++ set +e + p; smallyes '' | + in_target dpkg --force-overwrite --force-confold --skip-same-version --install $(debfor $predep) ++ rc=$? + base=$(without "$base" "$predep") + done_predeps="$done_predeps $predep" ++ ++ if [ $rc != 0 ]; then ++ warning FREEBSD_00 "Applying FreeBSD-specific workaround..." ++ # ... for "Failed to mount /etc/machine-id: Bad address" with Focal. ++ in_target truncate -s0 /var/lib/dpkg/info/systemd.postinst ++ in_target dpkg --configure systemd ++ fi ++ set -e + done + + if [ -n "$base" ]; then |