add: --no-swap option

from: https://groups.google.com/d/msg/beagleboard/KdcMGFJKvuc/PPN0xgw0VXQJ

Reported-by: David Lambert <dave@lambsys.com>
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 11 years ago
parent 395334f3a4
commit 0ff008b13a

@ -909,10 +909,21 @@ finish_installing_device () {
}
setup_parition_recipe () {
#This (so far) has been leaving the first Partition Alone...
if [ "x${no_swap}" = "xenabled" ] ;
cat > ${TEMPDIR}/initrd-tree/partition_recipe <<-__EOF__
500 1000 -1 ext4
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / } label{ rootfs }
options/noatime{ noatime } .
__EOF__
else
if [ ! "${conf_swapsize_mb}" ] ; then
conf_swapsize_mb=1024
fi
#This (so far) has been leaving the first Partition Alone...
cat > ${TEMPDIR}/initrd-tree/partition_recipe <<-__EOF__
500 1000 -1 ext4
method{ format } format{ }
@ -925,6 +936,7 @@ setup_parition_recipe () {
format{ } .
__EOF__
fi
}
initrd_preseed_settings () {
@ -1664,6 +1676,9 @@ while [ ! -z "$1" ] ; do
check_root
check_mmc
;;
--no-swap)
no_swap="enabled"
;;
--uboot)
checkparm $2
UBOOT_TYPE="$2"

Loading…
Cancel
Save