swapfilespeicher

This commit is contained in:
simono41 2018-07-22 16:21:32 +02:00
parent 7e6601e5d0
commit 9d5c9c281a

View file

@ -254,7 +254,7 @@ function cron() {
function makeswapfile() { function makeswapfile() {
#swapfile #swapfile
fallocate -l 4G ${mountpoint}/swapfile fallocate -l ${swapfilespeicher} ${mountpoint}/swapfile
chmod 600 ${mountpoint}/swapfile chmod 600 ${mountpoint}/swapfile
mkswap ${mountpoint}/swapfile mkswap ${mountpoint}/swapfile
echo "/swapfile none swap defaults 0 0" >> ${mountpoint}/etc/fstab echo "/swapfile none swap defaults 0 0" >> ${mountpoint}/etc/fstab
@ -895,6 +895,9 @@ function abfrage() {
read -p "Do you want to create a swap partition? : [Y/n] " swap read -p "Do you want to create a swap partition? : [Y/n] " swap
read -p "Do you want to create a swapfile? : [y/N] " swapfile read -p "Do you want to create a swapfile? : [y/N] " swapfile
if [ "${swapfile}" == "y" ]; then
read -p "Do you want create your swapfile with : [2G/4G/8G/16G] " swapfilespeicher
fi
# if [ "${update}" != "n" ]; then # if [ "${update}" != "n" ]; then
# #
@ -995,9 +998,9 @@ function abfrage() {
#if [ "${swap}" != "n" ]; then #if [ "${swap}" != "n" ]; then
# echo "Swap-partition ${swapspeicher}" # echo "Swap-partition ${swapspeicher}"
#fi #fi
#if [ "${swapfile}" == "y" ]; then if [ "${swapfile}" == "y" ]; then
# echo "Swapfile ${swapfilespeicher}" echo "Swapfile ${swapfilespeicher}"
#fi fi
#echo "Rootpasswort: ${pass}" #echo "Rootpasswort: ${pass}"
echo "Architektur: $(uname -m)" echo "Architektur: $(uname -m)"
echo "Installation: ${install}" echo "Installation: ${install}"