5
0
Fork 0
mirror of https://codeberg.org/Computertruhe/Setup-Skripte.git synced 2025-06-28 11:26:18 +02:00

rm swapfile

This commit is contained in:
Robert 2024-11-12 08:21:52 +01:00
parent 72331b50c5
commit 4e588f521f

View file

@ -24,6 +24,9 @@ rootdev=${rootdevsrc%\[/@]}
echo "BTRFS-Device ist daher $rootdev" echo "BTRFS-Device ist daher $rootdev"
echo "OK - erzeuge jetzt (etwas umständlich) ein SubVol /@swap, in dem swapfile liegt" echo "OK - erzeuge jetzt (etwas umständlich) ein SubVol /@swap, in dem swapfile liegt"
# falls noch ein altes /swapfile da ist : kill
sudo rm /swapfile
# zunächst nochmal mounten, damit die root-subvols sichtbar werden # zunächst nochmal mounten, damit die root-subvols sichtbar werden
sudo mount $rootdev /mnt sudo mount $rootdev /mnt
# If you run ls /mnt, you'll see @, @home and other subvolumes that may be there. # If you run ls /mnt, you'll see @, @home and other subvolumes that may be there.
@ -68,4 +71,5 @@ sudo echo "UUID=$uuid /swap btrfs defaults,subvol=@swap 0 0" >> /etc/fstab
sudo echo "/swap/swapfile none swap sw 0 0" >> /etc/fstab sudo echo "/swap/swapfile none swap sw 0 0" >> /etc/fstab
# The UUID is the one of your /dev/sda1. # The UUID is the one of your /dev/sda1.
echo "Fertig" echo "Fertig! Swap ist nun im Subvol @swap"
sudo swapon