[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#729445: No /dev/disk/by-uuid link created for ext2 partitions



Package: partman-base

Several users reported that /dev/disk/by-uuid is not updated when d-i
creates an ext2 filesystem.  This problem does not happen when you
create an ext3 or ext4 filesysten.  I noticed that d-i uses parted to
create ext2 filesystems whereas ext3 and ext4 filesystems are created
by running mkfs.ext[34].

I ran parted mkfs outside of d-i and the /dev/disk/by-uuid was
created.

Looking at partman server, it seems to run:

command_create_file_system
timered_file_system_create
ped_file_system_create

whereas parted is like this:

do_mkfs
ped_file_system_create
....
ped_disk_commit

ped_disk_commit sounds like a command that informs the OS of the
change.  Maybe this function would trigger udev to update the
/dev/disk/by-uuid link?

Note that I don't know anything about parted, so maybe this hypothesis
is completely wrong, but there's certainly a problem somewhere.

This bug is easy to reproduce: boot d-i, enter partman, create one
partition with ext2 and one with ext3.  Then check /dev/disk/by-uuid
and you'll see there's a link for the ext3 but no link for the ext2
partition.

-- 
Martin Michlmayr
http://www.cyrius.com/


Reply to: