Bug 18274

Summary: Installer does not unmount root fs
Product: Branch 4.1 Reporter: Ivan Zakharyaschev <imz>
Component: installer-stage2Assignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: qa-4.1 <qa-4.1>
Severity: blocker    
Priority: P2 CC: boyarsh, silicium
Version: unspecified   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
/root/.install.log
none
dmesg.out
none
mount.out
none
df.out none

Description Ivan Zakharyaschev 2008-12-21 00:03:24 MSK
I installed 4.1 Desktop from the DVD. I followed the defaults in the installer (except for manually making the partitions).

It doesn't start anything on boot now.

The last things that can be seen on the screen (for example, when booting "failsafe") are:

INIT: version 2.86 booting

Enter runlevel: 3
INIT: Entering runlevel: 3
INIT: no more processes left in this runlevel

(That's me who entered 3 in the second non-empty line.)
Comment 1 Ivan Zakharyaschev 2008-12-21 03:12:10 MSK
Created attachment 3143 [details]
/root/.install.log

The install log extracted via LiveCD. (I don't care about the plaintext passwords there, I'll change them.)
Comment 2 Ivan Zakharyaschev 2008-12-21 03:15:35 MSK
Created attachment 3144 [details]
dmesg.out

"dmesg" run in the "single" runlevel, extracted via LiveCD.
Comment 3 Ivan Zakharyaschev 2008-12-21 03:17:22 MSK
Created attachment 3145 [details]
mount.out

"mount" run in the "single" runlevel, extracted via LiveCD.
Comment 4 Ivan Zakharyaschev 2008-12-21 03:18:12 MSK
Comment on attachment 3145 [details]
mount.out

(After doing "mount / -o remount,rw", of course.)
Comment 5 Ivan Zakharyaschev 2008-12-21 03:19:01 MSK
(In reply to comment #4)
> (From update of attachment 3145 [details])
> (After doing "mount / -o remount,rw", of course.)

It was readonly initially in the "single" mode.

Comment 6 Ivan Zakharyaschev 2008-12-21 03:19:50 MSK
Created attachment 3146 [details]
df.out

"df" run in the "single" runlevel; extracted via LiveCD.
Comment 7 Ivan Zakharyaschev 2008-12-21 04:46:07 MSK
https://bugzilla.altlinux.org/show_bug.cgi?id=17972 looks similar.
Comment 8 Ivan Zakharyaschev 2008-12-21 16:34:16 MSK
Is it because of XFS?
Comment 9 Ivan Zakharyaschev 2008-12-23 02:07:46 MSK
Viewed superficially, it's SysVinit-2.86-alt2 who doesn't do what it is supposed to do.
Comment 10 Dmitry V. Levin 2008-12-23 02:15:28 MSK
/sbin/init has nothing to do with FS type.
Either initrd.img is not functional or smth odd happened.
Comment 11 Ivan Zakharyaschev 2008-12-23 03:50:49 MSK
/etc/inittab is empty. Ha-ha, this could be the famous misfeature of XFS, which zeroes files left open. (It could be left open by the installer? Perhaps. By another init? Probably not, init doesn't have to open it for writing...)
Comment 12 Dmitry V. Levin 2008-12-23 04:07:08 MSK
(In reply to comment #11)
> /etc/inittab is empty. Ha-ha, this could be the famous misfeature of XFS, which zeroes files left open. (It could be left open by the
> installer? Perhaps.

This is an installer bug.
Comment 13 Ivan Zakharyaschev 2008-12-23 04:36:42 MSK
(In reply to comment #11)
> /etc/inittab is empty. Ha-ha, this could be the famous misfeature of XFS, which zeroes files left open. (It could be left open by the
> installer? Perhaps. 

Here is some information from stat that could give hints about the stage of the installation at which this file has been touched:

  File: `/mnt/sda5/etc/inittab'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 805h/2053d	Inode: 67852032    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 00:35:12.388090743 +0300
Modify: 2008-12-20 23:27:06.274380054 +0300
Change: 2008-12-20 23:27:06.274380054 +0300
  File: `/mnt/sda5/etc/lilo.conf'
  Size: 574       	Blocks: 8          IO Block: 4096   regular file
Device: 805h/2053d	Inode: 102752337   Links: 1
Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 00:23:30.621349650 +0300
Modify: 2008-12-20 23:27:05.010380091 +0300
Change: 2008-12-20 23:27:05.014460218 +0300
  File: `/mnt/sda5/etc/lilo.conf.old'
  Size: 519       	Blocks: 8          IO Block: 4096   regular file
Device: 805h/2053d	Inode: 69413695    Links: 1
Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 00:23:30.621349650 +0300
Modify: 2008-12-20 22:45:18.226389000 +0300
Change: 2008-12-20 23:27:04.550379377 +0300
  File: `/mnt/sda5/root/.install-log/basesystem.log'
  Size: 36956     	Blocks: 80         IO Block: 4096   regular file
Device: 805h/2053d	Inode: 69413692    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 01:00:28.628089891 +0300
Modify: 2008-12-20 23:27:00.062380555 +0300
Change: 2008-12-20 23:27:00.062380555 +0300
  File: `/mnt/sda5/root/.install-log/install2.log'
  Size: 182882    	Blocks: 360        IO Block: 4096   regular file
Device: 805h/2053d	Inode: 69413691    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 01:00:28.616089973 +0300
Modify: 2008-12-20 23:27:00.058379069 +0300
Change: 2008-12-20 23:27:00.058379069 +0300
  File: `/mnt/sda5/root/.install-log/wizard.log'
  Size: 147613    	Blocks: 296        IO Block: 4096   regular file
Device: 805h/2053d	Inode: 69413694    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 01:00:28.648089919 +0300
Modify: 2008-12-20 23:27:03.078380003 +0300
Change: 2008-12-20 23:27:03.078380003 +0300
  File: `/mnt/sda5/root/.install-log/x11.log'
  Size: 35723     	Blocks: 72         IO Block: 4096   regular file
Device: 805h/2053d	Inode: 69413693    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-23 01:00:28.632089771 +0300
Modify: 2008-12-20 23:27:00.066379457 +0300
Change: 2008-12-20 23:27:00.066379457 +0300
  File: `/mnt/sda5/etc/X11/xorg.conf'
  Size: 1239      	Blocks: 8          IO Block: 4096   regular file
Device: 805h/2053d	Inode: 3027100     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2008-12-20 23:26:56.950380077 +0300
Modify: 2008-12-20 23:26:53.854380236 +0300
Change: 2008-12-20 23:26:53.858389754 +0300
Comment 14 Ivan Zakharyaschev 2008-12-23 04:45:58 MSK
The stat of /etc/inittab indicates it was "modified" at the last moment of the installation:

# find /mnt/sda5/ -newer /mnt/sda5/etc/inittab
/mnt/sda5/var/lib/rpm
/mnt/sda5/var/run
/mnt/sda5/etc
/mnt/sda5/etc/mtab
/mnt/sda5/root
/mnt/sda5/root/tmp
/mnt/sda5/root/dmesg.out
/mnt/sda5/root/mount.out
/mnt/sda5/root/df.out
/mnt/sda5/root/.bash_history
/mnt/sda5/root/.lesshst
# 
Comment 15 Ivan Zakharyaschev 2008-12-24 19:24:20 MSK
> Installer does not unmount root fs

Yes, it writes in the end:

Remains mounted: /destination
Remains mounted: /destination/home

I performed the installation once again: on XFS, but with slightly different partition layouts and with more packages.

This time zeroing of /etc/inittab didn't happen.
Comment 16 Michael Shigorin 2014-11-05 20:41:38 MSK
В 4.1/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.