[archiso] Canonicalize path to dm-devices in used_block_devices

All devices listed at used_block_devices, now are canonicalized.

Fix FS#29538

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2012-04-19 11:44:29 -03:00
parent e14b4d6423
commit c816a33d0e

View File

@ -34,7 +34,7 @@ _mnt_fs() {
echo "0 ${ro_dev_size} snapshot ${ro_dev} ${rw_dev} ${cow_persistent} 8" | dmsetup create ${dm_snap_name}
_mnt_dev "/dev/mapper/${dm_snap_name}" "${newroot}${mnt}" "-w"
echo /dev/mapper/${dm_snap_name} >> /run/archiso/used_block_devices
echo $(readlink -f /dev/mapper/${dm_snap_name}) >> /run/archiso/used_block_devices
echo "/dev/mapper/${dm_snap_name} ${mnt} auto defaults 0 0" >> ${newroot}/etc/fstab
}