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:
parent
72331b50c5
commit
4e588f521f
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,9 @@ rootdev=${rootdevsrc%\[/@]}
|
|||
echo "BTRFS-Device ist daher $rootdev"
|
||||
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
|
||||
sudo mount $rootdev /mnt
|
||||
# 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
|
||||
|
||||
# The UUID is the one of your /dev/sda1.
|
||||
echo "Fertig"
|
||||
echo "Fertig! Swap ist nun im Subvol @swap"
|
||||
sudo swapon
|
Loading…
Add table
Add a link
Reference in a new issue