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

Bug#414733: partman-target: devfs style name for USB-stick in /etc/fstab



Package: partman-target
Version: 48
Tags: patch

After an hd-media installation from USB-stick, I ended up with the 
USB-stick listed in /etc/fstab in the target system using its devfs name, 
instead of its regular device name.

It looks like a final mapdevfs translation is missing in the case udevinfo 
is available. The following patch should fix this.

Index: finish.d/fstab_removable_media_entries
===================================================================
--- finish.d/fstab_removable_media_entries      (revision 45725)
+++ finish.d/fstab_removable_media_entries      (working copy)
@@ -99,7 +99,8 @@
                continue 2
            fi
        done
-       founddevs="${founddevs:+$founddevs }$dev"
+       mapdev="$(mapdevfs $dev)"
+       founddevs="${founddevs:+$founddevs }$mapdev"
     done
 else
     for dir in /proc/scsi/usb-storage-* /proc/scsi/usb-storage; do

Attachment: pgpM4qhgbndk6.pgp
Description: PGP signature


Reply to: