Compare commits

..

3 Commits

Author SHA1 Message Date
Mauro Morales
6751d7421f Add dmsetup remove before kpartx -d
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-24 14:48:44 +02:00
Itxaka
a868346eac Merge pull request #56 from Itxaka/keep_lvm_flag 2023-05-23 20:40:28 +02:00
Itxaka
f533e5e10e Restore --use-lvm flag for backwards compatibility
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-05-23 20:39:52 +02:00

View File

@@ -103,6 +103,7 @@ usage()
echo " --model: (optional) The board model"
echo " --efi-dir: (optional) A directory with files which will be added to the efi partition"
echo " --disable-lvm: (optional- no arguments) LVM for the recovery and oem partitions will be disabled"
echo " --use-lvm: (deprecated and ignored. Kept for backwards compatibility)"
exit 1
}
@@ -192,6 +193,9 @@ while [ "$#" -gt 0 ]; do
--disable-lvm)
disable_lvm=true
;;
--use-lvm)
disable_lvm=false
;;
-h)
usage
;;
@@ -442,6 +446,8 @@ sync
echo ">> Performing $model specific bits.."
/arm/boards/$model.sh ${DRIVE}
dmsetup remove $DRIVE
sync
sleep 5
sync