Skip to content
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

Merged
merged 8 commits into from
Aug 14, 2023
Merged

First draft of 4.2 update #11

merged 8 commits into from
Aug 14, 2023

Conversation

marmarta
Copy link
Member

@marmarta marmarta commented Jul 19, 2023

First draft of update script from 4.1 to 4.2

QubesOS/qubes-issues#7832

First draft of update script from 4.1 to 4.2
@@ -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
Copy link
Member

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

scripts/upgrade-template-standalone.sh Outdated Show resolved Hide resolved
qubes-dist-upgrade.sh Outdated Show resolved Hide resolved
@marmarta marmarta force-pushed the update4.2 branch 3 times, most recently from db1b968 to a133b49 Compare July 27, 2023 21:33
# 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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dnf swap--allowerasing pulseaudio pipewire-pulseaudio
dnf swap --allowerasing pulseaudio pipewire-pulseaudio

To make changing them less painful.
@marmarek marmarek changed the base branch from release4.0 to main July 28, 2023 13:34
@marmarek
Copy link
Member

PipelineRetry

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
Copy link
Member

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/}"

@marmarta marmarta force-pushed the update4.2 branch 3 times, most recently from ce27676 to fb457d4 Compare July 31, 2023 19:13
qubes-dist-upgrade.sh Outdated Show resolved Hide resolved
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)
Copy link
Member

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

qubes-dist-upgrade.sh Outdated Show resolved Hide resolved
qubes-dist-upgrade.sh Outdated Show resolved Hide resolved
Also take --assume-yes into account when removing
backup.
@marmarek marmarek merged commit 521b0ae into QubesOS:main Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants