Public bug reported:

Binary package hint: mountall

As I understand it, mountall should block various things from happening
until the relevant part of the filesystem is mounted.  Specifically,
from what I gather, user login should wait until /home and the user home
directories are mounted before letting things progress to user logon.

Unfortunately with /home as a soft link, this blocking does not happen,
and the system lets the user try to login without the user's home
directory being available.

I don't know what check is done for /home, but would suggest that this
check for /home/ instead, or - to be thorough - whatever /etc/passwd
lists as being home directories, following symlinks.

$ ls -l /home
lrwxrwxrwx 1 root root 15 2008-11-23 19:01 /home -> /media/md1/home

$ ls -l /home/
total 44
drwxr-xr-x   2 dasusr1  dasadm1  4096 2009-01-07 18:20 dasusr1
drwxr-xr-x   2 db2fenc1 db2fadm1 4096 2008-11-22 00:12 db2fenc1
drwxr-xr-x   2 db2inst1 db2iadm1 4096 2009-01-07 18:20 db2inst1
drwxr-xr-x 109 dylan    users    4096 2009-11-11 00:30 dylan
drwxr-xr-x   2 root     root     4096 2003-09-24 05:11 ftp
drwxr-xr-x   6 mythtv   ntp      4096 2009-11-09 21:00 mythtv
drwxr-xr-x   3 photos   users    4096 2008-12-29 21:16 photos
drwxr-xr-x   3 shuttleb users    4096 2007-11-09 22:42 shuttleb

While I've seen the bootwait option suggested elsewhere, to me it seems
that this more-involved check should be the default behavior.

[Actually, i think mountall should default to waiting for all fscks, but
that's a different story].

$ lsb_release -rd
Description:    Ubuntu 9.10
Release:        9.10

$ apt-cache policy mountall
mountall:
  Installed: 1.0
  Candidate: 1.0
  Version table:
 *** 1.0 0
        500 http://mirror.internode.on.net karmic/main Packages
        100 /var/lib/dpkg/status

** Affects: mountall (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: mountall
  
  As I understand it, mountall should block various things from happening
  until the relevant part of the filesystem is mounted.  Specifically,
  from what I gather, user login should wait until /home and the user home
  directories are mounted before letting things progress to user logon.
  
  Unfortunately with /home as a soft link, this blocking does not happen,
  and the system lets the user try to login without the user's home
  directory being available.
  
  I don't know what check is done for /home, but would suggest that this
  check for /home/ instead, or - to be thorough - whatever /etc/passwd
  lists as being home directories, following symlinks.
  
- 
  $ ls -l /home
  lrwxrwxrwx 1 root root 15 2008-11-23 19:01 /home -> /media/md1/home
  
  $ ls -l /home/
  total 44
  drwxr-xr-x   2 dasusr1  dasadm1  4096 2009-01-07 18:20 dasusr1
  drwxr-xr-x   2 db2fenc1 db2fadm1 4096 2008-11-22 00:12 db2fenc1
  drwxr-xr-x   2 db2inst1 db2iadm1 4096 2009-01-07 18:20 db2inst1
  drwxr-xr-x 109 dylan    users    4096 2009-11-11 00:30 dylan
  drwxr-xr-x   2 root     root     4096 2003-09-24 05:11 ftp
  drwxr-xr-x   6 mythtv   ntp      4096 2009-11-09 21:00 mythtv
  drwxr-xr-x   3 photos   users    4096 2008-12-29 21:16 photos
  drwxr-xr-x   3 shuttleb users    4096 2007-11-09 22:42 shuttleb
  
- 
- While I've seen the bootwait option suggested elsewhere, to me it seems that 
this more-involved check should be the default behavior.  
+ While I've seen the bootwait option suggested elsewhere, to me it seems
+ that this more-involved check should be the default behavior.
  
  [Actually, i think mountall should default to waiting for all fscks, but
  that's a different story].
- 
  
  $ lsb_release -rd
  Description:  Ubuntu 9.10
  Release:      9.10
  
  $ apt-cache policy mountall
  mountall:
-   Installed: 1.0
-   Candidate: 1.0
-   Version table:
-  *** 1.0 0
-         500 http://mirror.internode.on.net karmic/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 1.0
+   Candidate: 1.0
+   Version table:
+  *** 1.0 0
+         500 http://mirror.internode.on.net karmic/main Packages
+         100 /var/lib/dpkg/status

-- 
mountall should wait for /home/ rather than /home, etc
https://bugs.launchpad.net/bugs/481279
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to