apt-install, %post, chroot

Ryan Lovett ryan at stat.Berkeley.EDU
Tue Jan 8 01:02:44 GMT 2008


This is just to document the fact that apt-install is not available when
post is run in a chroot. It tripped me up and I thought I'd save someone
else the trouble.

Maybe something like the patch below would help. (totally untested)

Ryan

--- kickseed-0.46/handlers/post.sh.orig 2007-06-18 14:15:53.000000000 -0700
+++ kickseed-0.46/handlers/post.sh      2008-01-07 16:59:02.000000000 -0800
@@ -26,3 +26,7 @@
                warn "%post --nochroot interpreters other than /bin/sh not
supported yet"
        fi
 }
+
+apt-install () {
+       warn "apt-install is not available when %post is run in a chroot"
+}




More information about the Ubuntu-installer mailing list