Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions archlinux/PKGBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ package_qubes-vm-core() {
release=${BASH_REMATCH[1]}.${BASH_REMATCH[2]}
depends=(
dconf
dosfstools
fakeroot
gawk
gnome-packagekit
Expand Down
10 changes: 10 additions & 0 deletions archlinux/PKGBUILD.install
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ update_qubesconfig() {
mount /usr/local || :
fi

rootdev=$(grep -o '^[^ ]* / ' /proc/mounts | cut -f 1 -d ' ') || rootdev=
# if root volume uses partitions, and is mounted directly (no dm-snapshot),
# check if xvda1 needs filesystem to be created
if [ -n "$rootdev" ] && [ "$(readlink -f "$rootdev")" = "/dev/xvda3" ]; then
if [ -z "$(blkid -o value -s TYPE /dev/xvda1)" ]; then
mkfs.vfat -S 4096 -n EFI /dev/xvda1 || \
echo "Creating EFI fs failed: 'mkfs.vfat -S 4096 -n EFI /dev/xvda1': $?" >&2
fi
fi

# Install qubes version of fstab
if ! grep -q dmroot /etc/fstab; then
cp -f /etc/fstab.qubes /etc/fstab
Expand Down
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Depends:
dconf-cli,
distro-info-data,
dmsetup,
dosfstools,
e2fsprogs,
gawk,
graphicsmagick,
Expand Down
10 changes: 10 additions & 0 deletions debian/qubes-core-agent.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ case "${1}" in
mount /usr/local || :
fi

rootdev=$(grep -o '^[^ ]* / ' /proc/mounts | cut -f 1 -d ' ') || rootdev=
# if root volume uses partitions, and is mounted directly (no dm-snapshot),
# check if xvda1 needs filesystem to be created
if [ -n "$rootdev" ] && [ "$(readlink -f "$rootdev")" = "/dev/xvda3" ]; then
if [ -z "$(blkid -o value -s TYPE /dev/xvda1)" ]; then
mkfs.vfat -S 4096 -n EFI /dev/xvda1 || \
echo "Creating EFI fs failed: 'mkfs.vfat -S 4096 -n EFI /dev/xvda1': $?" >&2
fi
fi

# remove old symlinks
if [ -L /etc/systemd/system/sysinit.target.wants/qubes-random-seed.service ]; then
rm /etc/systemd/system/sysinit.target.wants/qubes-random-seed.service
Expand Down
10 changes: 10 additions & 0 deletions rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ Obsoletes: qubes-core-vm-doc < 4.0.0
Conflicts: qubes-gui-agent < 4.1.6
Conflicts: pulseaudio-qubes < 4.2.0
Provides: group(qubes)
Requires(post): dosfstools
Requires(pre): shadow
Requires(pre): qubes-db
BuildRequires: gcc
Expand Down Expand Up @@ -574,6 +575,15 @@ if [ -L /usr/local ]; then
mount /usr/local || :
fi

rootdev=$(grep -o '^[^ ]* / ' /proc/mounts | cut -f 1 -d ' ') || rootdev=
# if root volume uses partitions, and is mounted directly (no dm-snapshot),
# check if xvda1 needs filesystem to be created
if [ -n "$rootdev" ] && [ "$(readlink -f "$rootdev")" = "/dev/xvda3" ]; then
if [ -z "$(blkid -o value -s TYPE /dev/xvda1)" ]; then
mkfs.vfat -S 4096 -n EFI /dev/xvda1 || echo "Creating EFI fs failed: 'mkfs.vfat -S 4096 -n EFI /dev/xvda1': $?" >&2
fi
fi

%if 0%{?fedora} < 41
if [ ! -f /etc/qubes-dnf-hardened ]; then
dnf config-manager --setopt=zchunk=0 --setopt=deltarpm=0 --save &&
Expand Down