From 2b3c7c92b43f09d3a8e8ff56667e502e5a367765 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 4 Dec 2018 12:23:11 +0100 Subject: [slx-part] fix swapped argument for fallback --- builder/modules.d/slx-partitioner/scripts/slx_partitioner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/modules.d/slx-partitioner/scripts/slx_partitioner b/builder/modules.d/slx-partitioner/scripts/slx_partitioner index 098bc469..8c003787 100755 --- a/builder/modules.d/slx-partitioner/scripts/slx_partitioner +++ b/builder/modules.d/slx-partitioner/scripts/slx_partitioner @@ -135,6 +135,7 @@ ramdisk_fallback() { while [ -b "/dev/mapper/$cow_device_candidate" ]; do cow_device_candidate="root.$RANDOM" done + # TODO fallback on thin-snapshot and not snapshot if [ -z "$writable_device" ] || ! create_snapshot "$cow_device_candidate N"; then emergency_shell "CRITICAL: failed to setup RAMdisk fallback." exit 1 @@ -183,7 +184,7 @@ if [ -n "$SLX_WRITABLE_DEVICE_PARTITION_TABLE" ]; then fi # Default to thin-snapshot, if none were configured if [ -z "$snapshot" ] && [ -z "$thin_snapshot" ]; then - thin_snapshot="thin-snapshot root 0 10G" + thin_snapshot="thin-snapshot root 10G 0" fi # Sanity checks for weird configurations -- cgit v1.2.3-55-g7522