-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First draft of 4.2 update #11
Conversation
First draft of update script from 4.1 to 4.2
qubes-dist-upgrade.sh
Outdated
@@ -474,7 +109,7 @@ if [[ $EUID -ne 0 ]]; then | |||
exit 1 | |||
fi | |||
|
|||
if ! OPTS=$(getopt -o htrlsgydu:n:f:jkp --long help,all,update,template-standalone-upgrade,release-upgrade,dist-upgrade,setup-efi-grub,assumeyes,double-metadata-size,usbvm:,netvm:,updatevm:,skip-template-upgrade,skip-standalone-upgrade,resync-appmenus-features,post-reboot,only-update:,max-concurrency:,keep-running: -n "$0" -- "$@"); then | |||
if ! OPTS=$(getopt -o htrlsgydu:n:f:jkp --long help,all,update,template-standalone-upgrade,release-upgrade,dist-upgrade,assumeyes,usbvm:,netvm:,updatevm:,skip-template-upgrade,skip-standalone-upgrade,resync-appmenus-features,post-reboot,only-update:,max-concurrency:,keep-running: -n "$0" -- "$@"); then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop also short options that don't exist anymore
db1b968
to
a133b49
Compare
# Removing xen-qubes-vm pkg disables this service, even though it's still | ||
# present in the system (via xen-runtime package now). | ||
systemctl preset xendriverdomain | ||
dnf swap--allowerasing pulseaudio pipewire-pulseaudio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dnf swap--allowerasing pulseaudio pipewire-pulseaudio | |
dnf swap --allowerasing pulseaudio pipewire-pulseaudio |
To make changing them less painful.
PipelineRetry |
qubes-dist-upgrade.sh
Outdated
default_kernel_package="$(rpm --qf '%{NAME}' -qf "$default_kernel_path")" | ||
if [ "$default_kernel_package" = "kernel-qubes-vm" ]; then | ||
new_kernel=$(rpm -q --qf '%{VERSION}-%{RELEASE}\n' kernel-qubes-vm | sort -V | tail -1) | ||
new_kernel="${new_kernel%.qubes}" # TODO: does this work? check with tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it doesn't, there may be 6.1.38-1.qubes.fc37
. Try new_kernel="${new_kernel/.qubes/}"
ce27676
to
fb457d4
Compare
qubes-dist-upgrade.sh
Outdated
keep_running+=( "${updates_proxy[@]}" ) | ||
fi | ||
if [ -e "/etc/qubes-rpc/policy/qubes.UpdatesProxy" ]; then | ||
mapfile -t updates_proxy_new < <(grep qubes.UpdatesProxy /etc/qubes/policy.d/*policy | grep '^\s*[^#].*target=' | cut -d = -f 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically it should be *.policy
Also take --assume-yes into account when removing backup.
First draft of update script from 4.1 to 4.2
QubesOS/qubes-issues#7832