Hi!

Marco d'Itri wrote:

> On Oct 11, Jacek Kawa <jacek.k...@gmail.com> wrote:
> 
> > 2. if I delete 61-dev-root-link.rules and restart, this
> > file is recreated before write_dev_root_rule is run 
> > (and in consequence correct /dev/root is not created). 
> I do not understand how this could be possible since the file is not
> supposed to survive a reboot.
> Is there any chance that your /run is not a tmpfs?

I have just been able to check it. I've added this pice of code into
write_dev_root_rule:

if [ -e $RUNDIR/rules.d/61-dev-root-link.rules ] ; then
    F=$RUNDIR/DRL_EXIST
    echo "" >> $F
    echo "--------------------" >> $F
    date >> $F
    echo "---" >> $F
    ls -l $RUNDIR/rules.d/ >> $F
    echo "---" >> $F
    cat /proc/mounts >> $F
    echo "---" >> $F
    cat $RUNDIR/rules.d/61-dev-root-link.rules >> $F
fi

this is what I've got:

--------------------
Mon Oct 17 10:27:34 CEST 2011
---
total 4
-rw-r--r-- 1 root root 92 Jan 12  2011 61-dev-root-link.rules
---
rootfs / rootfs rw 0 0
/dev/root / ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,size=5120k,mode=755 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=207228k,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime,size=512000k 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev tmpfs rw,relatime,size=10240k,mode=755 0 0
---
ACTION=="add|change", SUBSYSTEM=="block", ENV{MAJOR}=="8", ENV{MINOR}=="2", 
SYMLINK+="root"

I.e. I do indeed have run on tmpfs. I still don't know, where the previous 
version
of 61-dev-root-link.rules does come from. There is no other file of that name 
pointed 
by find / -name '61-dev-root-link.rules'. 

When booted with init=/bin/sh, /run is empty. 

Bye!

-- 
Jacek Kawa  **Laskette varmaan leikkiƤ**



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to