[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#699704: partman: Please don't load_extra on non-Linux



On 04/02/13 12:58, Samuel Thibault wrote:
> udpkg --print-os

Ah, thanks.  Let's go with that.

Samuel, are you in favour of skipping installation of these udebs on
GNU/Hurd?


I've now tested the attached patch on kfreebsd-amd64, and it does fix
the problem, which I could reproduce before only in these specific
circumstances:

* only in the GTK installer (netboot-9/gtk or cdrom/gtk;  kfreebsd-i386
doesn't have this)
* >=256 MiB RAM (not lowmem mode)
* language other than US English
* a preseed.cfg that uses partman-auto

d-i built with either sid or wheezy udebs made no difference;  it always
ran out of ramdisk space at the same point in partman.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
diff --git a/partman b/partman
index c993b94..cb6597a 100755
--- a/partman
+++ b/partman
@@ -15,6 +15,14 @@ abort () {
 load_extra () {
 	local auto memreq_lvm memreq_crypto
 
+	# These packages currently are of no use on GNU/kFreeBSD or GNU/Hurd,
+	# but do waste a lots of space, so skip installing them here
+	case "$(udpkg --print-os)" in
+	kfreebsd|hurd)
+		return 0
+		;;
+	esac
+
 	if [ -f /var/lib/partman/loaded-extra ]; then
 		return 0
 	fi

Reply to: