info message

This commit is contained in:
midov 2021-01-01 14:43:35 +01:00
parent 63accf8501
commit 021f8b56fe
2 changed files with 6 additions and 2 deletions

View File

@ -12,9 +12,11 @@ spawn arch-chroot $datasetpath
expect -re $prompt
send "su $user\r"
expect -re $prompt
send "$manager\r";
send "$manager\r"
expect -re $prompt
send_user "Make sure system is in a working state, then press ok\n"
send " \r"
interact "ok" return
# expect -re $prompt
send "sudo rm -rf /var/cache/pacman/pkg/*xz\r"
expect -re $prompt
send "sudo rm -rf /var/cache/pacman/pkg/*zst\r"

View File

@ -16,6 +16,8 @@ rm -rf /var/cache/pacman/pkg/*xz
rm -rf /var/cache/pacman/pkg/*zst
[[ $bootpool == "true" ]] && zfs snapshot "$currentboot"@boot_"$currentdate"
#debug
echo zfs snapshot "$currentroot"@root_"$currentdate"
zfs snapshot "$currentroot"@root_"$currentdate"
zfs clone "$currentroot"@root_"$currentdate" "$nextroot"
[[ $bootpool == "true" ]] && rm /"${nextroot:?}"/boot -r