[Bug 727758] New: /etc/mtab remains file on dup
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c0 Summary: /etc/mtab remains file on dup Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: All OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: bwiedemann@suse.com QAContact: qa@suse.de CC: lnussel@suse.com Found By: System Test Blocker: --- openQA tests found that when upgrading a 11.3 system with zypper dup, it will leave /etc/mtab as regular file, because a) util-linux does not do it in %post anymore (because it is cleaner to do on system boot) b) aaa_base scripts doing it earlier, do not run on boot with systemd failed test looks thus: http://openqa.opensuse.org/viewimg/opensuse/testresults/openSUSE-NET-i586-Bu... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c1 --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2011-11-02 12:44:08 UTC --- it is not systemd job to own this symlink. It should be owned by a package (filesystem, I think) and we add some macros to handle the migration. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c2 --- Comment #2 from Ludwig Nussel <lnussel@suse.com> 2011-11-02 13:58:01 CET --- the file isn't actually owned by anyone. aaa_base creates it as symlink if it doesn't already exist. Packages can't replace /etc/mtab at run time though as that would lose data (user=xxx options for example). Ie /etc/mtab needs to be turned into a symlink early at boot (provided that /etc/ is writable of course). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2011-11-02 13:22:20 UTC --- systemd is only outputing a warning about something which might break (ie it doesn't matter for systemd). So, we could either try to recreate the symlink at startup, after / is remounted rw or at shutdown, before unmounting / (in both cases, systemd will complain one time). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c4 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@suse.com --- Comment #4 from Ludwig Nussel <lnussel@suse.com> 2011-11-02 15:01:36 CET --- coolo suggested to put the code that replaces /etc/mtab with a symlink into initrd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-11-02 15:56:05 CET --- doesn't initrd run before fsck and remount-rw? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c6 --- Comment #6 from Stephan Kulow <coolo@suse.com> 2011-11-02 16:03:54 CET --- the initrd runs a full set of stuff, your question is confusing :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c7 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mmarek@suse.com --- Comment #7 from Ludwig Nussel <lnussel@suse.com> 2011-11-02 16:10:29 CET --- according to the new world order initrd is the new /, therefore initrd fscks and mounts / rw .oO(why isn't systemd in initrd?). Here's my suggestion for files/lib/mkinitrd/scripts/boot-mtab.sh which could be included in aaa_base: #!/bin/bash # #%stage: setup #%programs: ln #%modules: #%dontshow if test -w /root/etc/ -a ! -L /root/etc/mtab ; then echo "replacing /etc/mtab with symlink to /proc/self/mounts" ln -sf /proc/self/mounts /root/etc/mtab fi Needinfo mmarek for ack. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c8 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |mmarek@suse.com InfoProvider|mmarek@suse.com | --- Comment #8 from Michal Marek <mmarek@suse.com> 2011-11-02 15:26:00 UTC --- ack. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c9 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Ludwig Nussel <lnussel@suse.com> 2011-11-02 16:59:00 CET --- done -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727758 https://bugzilla.novell.com/show_bug.cgi?id=727758#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-11-02 17:00:22 CET --- This is an autogenerated message for OBS integration: This bug (727758) was mentioned in https://build.opensuse.org/request/show/89956 Factory / aaa_base -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com