[Bug 244937] New: /dev empty after formatting
https://bugzilla.novell.com/show_bug.cgi?id=244937 Summary: /dev empty after formatting Product: openSUSE 10.3 Version: Alpha 1 Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: P5 - None Component: Installation AssignedTo: yast2-maintainers@suse.de ReportedBy: aj@novell.com QAContact: jsrain@novell.com CC: olh@novell.com In a new install, /dev empty gets somehow removed after formatting. It seems that the inst_kickoff call: /bin/rm -rf /mnt/dev && /bin/mkdir -p /mnt/dev && /bin/mount -v --bind /dev /mnt/dev is completely wrong. For details ask olh! -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 ------- Comment #1 from aj@novell.com 2007-02-13 03:56 MST ------- Problem is that before this, you do already issue bind mount - and therefore remove the root file system. It might be that the update case works - but new installation is completley screwed up. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 ------- Comment #2 from olh@novell.com 2007-02-13 04:00 MST ------- inst-sys:~ # find /mounts/instsys/ -type f -print0 | xargs -0 grep -nw -- --bind | o -S /mounts/instsys/usr/share/YaST2/clients/bootloader_finish.ycp:67: mount -v --bind /dev ${targetdir}/dev /mounts/instsys/usr/share/YaST2/clients/bootloader_finish.ycp:70: y2milestone ("mount --bind cmd: %1", cmd); /mounts/instsys/usr/share/YaST2/clients/bootloader_finish.ycp:76: y2milestone ("mount --bind /dev /mnt/dev output: %1", out); /mounts/instsys/usr/share/YaST2/clients/inst_kickoff.ycp:348: "/bin/rm -rf '%1/dev/' && /bin/mkdir -p '%1/dev/' && /bin/mount -v --bind '/dev/' '%1/dev/'", /mounts/instsys/usr/share/YaST2/clients/inst_prepdisk.ycp:128: "; mount -v --bind /dev " + Storage::PathToDestdir("/dev"); The inst_kickoff part is wrong. It removes /dev unconditionally. inst_prepdisk does the --bind mount already, together with mounting /mnt/proc etc. Maybe the --bind in inst_kickoff can be moved into the Mode::update() a few lines above. The bootloader_finish (for a the system upgrade path) part should not hurt, as it checks wether /dev is already mounted. But in the end, the --bind mount code can be removed once inst_kickoff works reliable. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 ------- Comment #4 from olh@novell.com 2007-02-13 04:32 MST ------- also note what inst_prepdisk does, it copies /lib/udev/devices/ onto the disk. this is required for static kernels. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |locilka@novell.com Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 ------- Comment #5 from locilka@novell.com 2007-02-13 05:16 MST ------- * The new installation is only fixed by moving the code (which works with /dev) to if (Mode::update()) { /bin/rm -rf /mnt/dev && /bin/mkdir -p /mnt/dev && /bin/mount -v --bind /dev/mnt/dev and /bin/rm -rf '/mnt/dev/' && /bin/mkdir -p '/mnt/dev/' && /bin/mount -v --bind '/dev/' '/mnt/dev/' } For update, the code seems to be correct (but will be checked, 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #6 from locilka@novell.com 2007-02-13 05:57 MST ------- 1.) Tested with 10.2 with devs.rpm installed * Update removes devs.rpm from the target system * Update removes and recreates /dev/ in the target system * Update mounts (bind) the current /dev/ to the target system (in /mnt) 2.) Tested with 10.2 without devs.rpm installed * Updates removes and recreates /dev/ in the target system * Update mounts (bind) the current /dev/ to the target system (in /mnt) 3.) Tested with 10.2 with/without, doesn't matter * New Installation doesn't call that code * bind mount is called anyway (from inst_prepdisk.ycp, part of storage) Fixed in yast2-packager-2.15.11 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244937 ------- Comment #7 from olh@novell.com 2007-02-13 06:30 MST ------- *** Bug 244554 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com