Red Hat Bugzilla – Bug 124667
RFE: compile devlabel with dietlibc for use in initrd
Last modified: 2014-03-16 22:45:42 EDT
for a better initrd (with udev) it would be nice to also include devlabel.
with the attached patch this is possible to build with diet
-gcc $RPM_OPT_FLAGS -o scsi_unique_id scsi_unique_id.c
-gcc $RPM_OPT_FLAGS -o partition_uuid -luuid partition_uuid.c
+diet gcc $RPM_OPT_FLAGS -o scsi_unique_id scsi_unique_id.c
+diet gcc $RPM_OPT_FLAGS -o partition_uuid partition_uuid.c -luuid
Created attachment 100658 [details]
patch for the utils to compile with dietlibc
Why not just enhance udev with libuuid support (and its own scsi
The guts of devlabel (the shell script bits) are pretty much
irrelevant with udev.
In fact, scsi_id in extras/ in udev seems to be more or less the same
thing as scsi_unique_id.