diff options
Diffstat (limited to 'builder/modules.d/slx-partitioner/scripts/slx_partitioner')
-rwxr-xr-x | builder/modules.d/slx-partitioner/scripts/slx_partitioner | 3 |
1 files changed, 2 insertions, 1 deletions
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 |