Compare commits

...

3 Commits

3 changed files with 16 additions and 14 deletions

View File

@@ -9,7 +9,8 @@ source \
"${BASEDIR}/system.conf" "${BASEDIR}/system.conf"
packages=(\ if [[ "${1}" == '-1' ]]; then
packages=(\
console-setup \ console-setup \
cryptsetup \ cryptsetup \
curl \ curl \
@@ -33,14 +34,12 @@ zfs-initramfs \
zstd\ zstd\
) )
include="--include=${packages[0]}"
include="--include=${packages[0]}" for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}"
done
for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}"
done
if [[ "${1}" == '-1' ]]; then
mmdebstrap \ mmdebstrap \
--skip=check/empty \ --skip=check/empty \
--components=main,non-free-firmware,contrib \ --components=main,non-free-firmware,contrib \

View File

@@ -9,7 +9,8 @@ source \
"${BASEDIR}/system.conf" "${BASEDIR}/system.conf"
packages=(\ if [[ "${1}" == '-1' ]]; then
packages=(\
console-setup \ console-setup \
cryptsetup \ cryptsetup \
curl \ curl \
@@ -29,14 +30,12 @@ zfs-initramfs \
zstd\ zstd\
) )
include="--include=${packages[0]}"
include="--include=${packages[0]}" for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}"
done
for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}"
done
if [[ "${1}" == '-1' ]]; then
mmdebstrap \ mmdebstrap \
--skip=check/empty \ --skip=check/empty \
--components=main,restricted,universe,multiverse \ --components=main,restricted,universe,multiverse \

View File

@@ -44,6 +44,10 @@ sgdisk \
if [[ "${ENABLE_SWAP}" == "yes" ]]; then if [[ "${ENABLE_SWAP}" == "yes" ]]; then
SWAP_SIZE="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))" SWAP_SIZE="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))"
if [[ "${SWAP_SIZE#}" -gt '32' ]]; then
SWAP_SIZE='32'
fi
sgdisk \ sgdisk \
-n2:0:+${SWAP_SIZE}G \ -n2:0:+${SWAP_SIZE}G \
-t2:BF02 \ -t2:BF02 \