index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Christian Hesse <mail@eworm.de> | 2015-01-02 11:23:44 +0100 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2015-01-02 15:13:36 -0300 |
commit | e5a40e2d00dbb6a5b7f35ce69d885323a69469a8 (patch) | |
tree | ea09eb4f9fe1d664c76fb5b329f72a6124ab6366 /hooks | |
parent | 1084bb1d6bf23dfd9ce01b446866a125b6ce1f38 (diff) |
-rw-r--r-- | hooks/archiso | 3 |
diff --git a/hooks/archiso b/hooks/archiso index 1bd9419..3ef4eb1 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -31,7 +31,7 @@ _mnt_fs() { rw_dev=$(losetup --find --show "/run/archiso/cowspace/${cow_directory}/${img_name}.cow") echo ${rw_dev} >> /run/archiso/used_block_devices - dmsetup create ${dm_snap_name} --table "0 ${ro_dev_size} snapshot ${ro_dev} ${rw_dev} ${cow_persistent} 8" + dmsetup create ${dm_snap_name} --table "0 ${ro_dev_size} snapshot ${ro_dev} ${rw_dev} ${cow_persistent} ${cow_chunksize}" _mnt_dev "/dev/mapper/${dm_snap_name}" "${newroot}${mnt}" "-w" echo $(readlink -f /dev/mapper/${dm_snap_name}) >> /run/archiso/used_block_devices @@ -112,6 +112,7 @@ run_hook() { fi [[ -z "${cow_directory}" ]] && cow_directory="persistent_${archisolabel}/${arch}" + [[ -z "${cow_chunksize}" ]] && cow_chunksize="8" # set mount handler for archiso mount_handler="archiso_mount_handler" |