From 804a6a4349944f2fa8ad146d8e7794ae19c09d58 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 15 Aug 2011 19:36:51 -0400 Subject: warn about missing modules on FreeBSD * Fix support for running debootstrap on a FreeBSD host to create a kFreeBSD chroot or jail. Thanks, Arno Toell. * When debootstrapping on FreeBSD, warn if necessary modules are not loaded. Thanks, Arno Toell. --- debootstrap | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debootstrap') diff --git a/debootstrap b/debootstrap index ca4c026..facd1d8 100755 --- a/debootstrap +++ b/debootstrap @@ -428,6 +428,12 @@ if [ -z "$ARCH" ] || [ -z "$HOST_OS" ]; then fi +if [ "$HOST_OS" = "kfreebsd" ] || [ "$HOST_OS" = "freebsd" ]; then + for module in "linprocfs fdescfs tmpfs linsysfs"; do + kldstat -m "$module" > /dev/null 2>&1 || warning SANITYCHECK "Probably required module %s is not loaded" "$module" + done +fi + if [ "$TARGET" = "/" ]; then CHROOT_CMD="" elif doing_variant scratchbox; then -- cgit v1.2.3