Hi!

Marco d'Itri wrote:

> On Sep 30, Jacek Kawa <jacek.k...@gmail.com> wrote:
> > > > 11 1 8:1 / / rw,noatime - ext4 /dev/root 
> > > > rw,errors=remount-ro,user_xattr,commit=600,barrier=1,data=ordered
> > lrwxrwxrwx 1 root root 4 wrz 22 21:24 /dev/root -> sda2
> 
> Have a look at /lib/udev/write_dev_root_rule and find out what is wrong
> with it.

Here it goes (as in udev 172-1):

-- start --
#!/bin/sh -e

RUNDIR=$(udevadm info --run || exit 0)

[ -d $RUNDIR ] || exit 0
mkdir -p $RUNDIR/rules.d/

[ ! -e $RUNDIR/rules.d/61-dev-root-link.rules ] || exit 0

eval $(udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/ || 
true)

[ "$ROOT_MAJOR" -a "$ROOT_MINOR" ] || exit 0

# btrfs filesystems have bogus major/minor numbers
[ "$ROOT_MAJOR" != 0 ] || exit 0

echo 'ACTION=="add|change", SUBSYSTEM=="block", ENV{MAJOR}=="'$ROOT_MAJOR'", 
ENV{MINOR}=="'$ROOT_MINOR'", SYMLINK+="root"' \
    > $RUNDIR/root-link-rule
mv $RUNDIR/root-link-rule $RUNDIR/rules.d/61-dev-root-link.rules
-- end --


ls -1 /etc/udev/rules.d/

70-persistent-cd.rules
70-persistent-net.rules
92-mypermissions.rules
z60_hdparm.rules
z60_libccid.rules
z60_xserver-xorg-input-wacom.rules

Should I put some debug into the write_dev_root_rule?

bye!

-- 
Jacek Kawa 



-- 
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