[arch-releng] [PATCH 2/2] [archiso] Allow persistent cow dm-snapshots.

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Tue Aug 23 11:40:48 EDT 2011


On 08/23/2011 11:01 AM, Gerardo Exequiel Pozzi wrote:
> On 08/23/2011 05:25 AM, Thomas Bächler wrote:
>> Am 23.08.2011 09:42, schrieb Gerardo Exequiel Pozzi:
>>> +* cow_label=        Set the filesystem label where COW (dm-snapshot)
>>> +                    files must be stored.
>>> +                    Default: (unset)
>>> +* cow_device=       Set the device node where COW (dm-snapshot) files
>>> +                    must be stored.
>>> +                    Default: (unset) or 
>>> "/dev/disk/by-label/${cow_label}"
>> Does this support cow_device being identical to archisodevice? This
>> would be beneficial if you remaster the official ISO as described in 
>> [1].
>>
>> [1]
>> https://wiki.archlinux.org/index.php/USB_Installation_Media#Without_overwriting_the_USB_drive 
>>
>>
> True :)
> No, but I can do that if [[ ${cow_device} == ${archisodevice} ]]
>
> Thanks for the feedback!
>

rebased with

-    _mnt_dev "${archisodevice}" "/bootmnt" "-r"
+    if [[ "$(readlink -f "${archisodevice}")" == "$(readlink -f 
"${cow_device}")" ]]; then
+        _mnt_dev "${archisodevice}" "/bootmnt"
+    else
+        _mnt_dev "${archisodevice}" "/bootmnt" "-r"
+    fi
+


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-releng mailing list