Skip to content

Commit

Permalink
Install grub2-xen-pvh via sdw-admin - dnf can't resolve/install new r…
Browse files Browse the repository at this point in the history
…equirements in dom0
  • Loading branch information
zenmonkeykstop committed Mar 31, 2024
1 parent 8f5970e commit ff02a55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions files/sdw-admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ def parse_args():
return args


def install__pvh_support()
"""
Installs grub2-xen-pvh in dom0 - required for PVH with AppVM local kernels
TODO: install this via package requirements instead if possible
"""
try:
subprocess.run(["sudo", "qubes-dom0-update", "-y", "-q", "grub2-xen-pvh"])
except subprocess.CalledProcessError:
raise SDWAdminException("Error installing grub2-xen-pvah: local PVH not available.")


def copy_config():
"""
Copies config.json and sd-journalist.sec to /srv/salt/sd
Expand Down Expand Up @@ -176,6 +187,7 @@ def main():
sys.exit(0)
print("Applying configuration...")
validate_config(SCRIPTS_PATH)
install_pvh_support()
copy_config()
refresh_salt()
provision_all()
Expand Down
1 change: 0 additions & 1 deletion rpm-build/SPECS/securedrop-workstation-dom0-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ BuildRequires: python3-wheel
# This package installs all standard VMs in Qubes
Requires: qubes-mgmt-salt-dom0-virtual-machines
Requires: python3-qt5
Requires: grub2-xen-pvh

%description
This package contains VM configuration files for the Qubes-based
Expand Down

0 comments on commit ff02a55

Please sign in to comment.