Bug#238963: Bug#230857: libc6: remove /etc/default/{devpts,tmpfs} etc
At Sun, 18 Apr 2004 10:54:34 +0100 (BST),
J.D. Thomas Hood <jdthood@yahoo.co.uk> wrote:
> --- GOTO Masanori <gotom@debian.or.jp> wrote:
> > I reread this thread, and I think:
> >
> > (1) glibc should not depend on initscripts
> > (2) glibc should not install three files (defalt/tmpfs,
> > default/devpts, init.t/mountkernfs)
> > (3) new initscripts should handle removing mountkernfs, devpts.sh
>
> OK with me. (There's more than one way to skin a cat.)
Thanks for reviewing.
...And Miquel, could you reply whether it's ok or not? We plan to
dupload glibc 2.3.2.ds1-12 with removing mountkernfs/devpts.sh very
soon.
> > This causes problem only the below case:
> >
> > - old initscripts (< 2.85-10 which does not have mountvirtfs) + old
> > glibc (<= 2.3.2.ds1-9, which does not have mountkernfs and
> > devpts.sh) is installed, then only glibc is upgrade to glibc (>=
> > 2.3.2.ds1-12 which does not have devpts.sh).
>
> According to the changelog, libc6 has included devpts.sh since 2.1.1-0.2 .
>
> > This case causes:
> >
> > - sysfs/tmpfs(shmfs)/usbfs are not mounted.
>
> Actually this problem should not occur because dpkg does not delete
> orphaned conffiles.
Exactly. Because of this, we can simply delete
mountkernfs/devpts/tmpfs from the next glibc.
> > - initscripts maintainer should do:
> >
> > * new initscripts should put a script which removes mountkernfs
> > and devpts.sh. Plus apply my patch.
>
> Your patch (in #238963) is a good idea but the text requires some
> editing for grammar. I assume Miquel can do the editing himself but
> I'll help if he asks.
Thanks for your comment, I welcome to merge them.
Removing "set -e" part is written in #232122, and now
/etc/init.d/mountvirtfs mounts tmpfs. Removing devpts.sh written in
#230857 is also part of initscripts. So I reassigned them.
I attached the patch for sysvinit 2.85-15 that removes
mountkernfs/devpts.sh from /etc/init.d. Please apply it.
--- sysvinit-2.85/debian/initscripts/preinst.org 2004-04-21 00:23:57.000000000 +0900
+++ sysvinit-2.85/debian/initscripts/preinst 2004-04-21 00:30:12.000000000 +0900
@@ -54,4 +54,18 @@
#
#EOF
+
+#
+# If there are /etc/init.d/devpts.sh and /etc/init.d/mountkernfs,
+# remove them. They're replaced by /etc/init.d/mountvirtfs nowadays.
+#
+if [ -f /etc/init.d/devpts.sh ]; then
+ rm -f /etc/init.d/devpts.sh
+ update-rc.d devpts.sh remove > /dev/null
+fi
+if [ -f /etc/init.d/mountkernfs ]; then
+ rm -f /etc/init.d/mountkernfs
+ update-rc.d mountkernfs remove > /dev/null
+fi
+
exit 0
The only problem I encountered was: when I installed the latest
initscripts (>= 2.85-10) with the latest glibc (>= 2.3.2.ds1-12, which
does not install /etc/default/tmpfs), and when I tried to downgrade
glibc (<= 2.3.2.ds1.11), dpkg complained
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-11_i386.deb (--install):
trying to overwrite `/etc/default/devpts', which is also in package initscripts
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.3.2.ds1-11_i386.deb
Unfortunatelly we never resolve it forever.
Regards,
-- gotom
Reply to: