[Pbuilder-maint] Should pbuilder create /etc/mtab
Junichi Uekawa
dancer at netfort.gr.jp
Wed Nov 2 00:18:11 UTC 2005
Hi,
> > I'm not sure what the FHS means by "if the corresponding subsystem is
> > installed".
> >
> > Should pbuilder create /etc/mtab?
>
> /etc/mtab would be one of the things that the system will
> create/clean-up in one of the boot processes, so
> I think pbuilder should be the one to cover up, yes.
>
> I think adding a fake entry, or a symbollic link
> to /proc/self/mounts should work, but
> since it's inside chroot, the contents of
> /etc/mtab would be rather difficult to maintain.
Hmm... I think ln -s will fail if it's already there;
and we have set -e; so pbuilder will fail.
It's probably going to fail if you do
pbuilder login --save-after-login
and
pbuilder login
again.
It'll probably need protection with
|| true
@@ -139,7 +139,6 @@
echo " -> mounting /proc filesystem"
mkdir -p $BUILDPLACE/proc
mount -t proc /proc "$BUILDPLACE/proc"
+ ln -s ../proc/mounts $BUILDPLACE/etc/mtab
fi
if [ "$USEDEVFS" = "yes" ]; then
echo " -> mounting /dev filesystem"
regards,
junichi
More information about the Pbuilder-maint
mailing list