info message
This commit is contained in:
parent
63accf8501
commit
021f8b56fe
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue