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