[Pkg-uml-pkgs] Bug#388068: rootstrap: mount /lib/modules before
rcS.d/S20module-init-tools
Andreas Beckmann
debian at abeckmann.de
Mon Sep 18 12:09:18 UTC 2006
Package: rootstrap
Version: 0.3.23-1
Severity: wishlist
Hi,
this a followup to bug #377035 where [uml]kernel_modules=hostfs was
introduced.
Using kernel_modules=hostfs breaks /etc/modules (unless it's empty).
Since this doesn't affect me (and I don't expect a large number of
users needs to load modules inside uml) I consider this a problem of
minor priority.
If hostfs is used, /lib/modules should be mounted before modules are
loaded in rcS.d/S20module-init-tools. Currently mounting is done in
rcS.d/S35mountall.sh
Perhaps a new initscript based on the following pseudocode should be
installed in the uml image (independently of the setting of
kernel_modules) and executed e.g. as rcS.d/S19uml-mount-modules
cat /etc/fstab | while read what where how other
do
if [ $where = /lib/modules ] && [ $how = hostfs ]; then
mount /lib/modules
break
fi
done
BTW, rootstrap.conf should mention the three possible values for
kernel_modules, like:
# kernel_modules can be one of none, hostfs or copy (default)
Andreas
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages rootstrap depends on:
ii debootstrap 0.3.3 Bootstrap a basic Debian system
ii dpkg 1.13.21 package maintenance system for Deb
ii python 2.4.3-11 An interactive high-level object-o
ii user-mode-linux 2.6.17-1um-2 User-mode Linux (kernel)
Versions of packages rootstrap recommends:
ii uml-utilities 20060323-3 User-mode Linux (utility programs)
-- no debconf information
More information about the Pkg-uml-pkgs
mailing list