diff options
Diffstat (limited to 'scripts/live')
| -rwxr-xr-x | scripts/live | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live index 90a9333..bf65b9d 100755 --- a/scripts/live +++ b/scripts/live @@ -230,6 +230,10 @@ Arguments () export NONETWORKING ;; + ramdisk-size=*) + ramdisk_size="${ARGUMENT#ramdisk-size=}" + ;; + swapon) SWAPON="Yes" export SWAPON @@ -539,6 +543,13 @@ copy_live_to () return 1 fi + # Custom ramdisk size + if [ -z "${mount_options}" ] && [ -n "${ramdisk_size}" ] + then + # FIXME: should check for wrong values + mount_options="-o size=${ramdisk_size}" + fi + # begin copying (or uncompressing) mkdir "${copyto}" log_begin_msg "mount -t ${fstype} ${mount_options} ${dev} ${copyto}" |
