Compare commits
10 Commits
mm_699e10c
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9debe185fc | ||
![]() |
29a0c0e7f4 | ||
![]() |
3a0a629a38 | ||
![]() |
ef2ab997bf | ||
![]() |
2ba9fd6c23 | ||
![]() |
241f812304 | ||
![]() |
8821906186 | ||
![]() |
34c8212467 | ||
![]() |
9f0dc7dc34 | ||
![]() |
c110f98fdf |
14
.travis.yml
14
.travis.yml
@ -1,5 +1,5 @@
|
||||
sudo: required
|
||||
dist: xenial
|
||||
dist: bionic
|
||||
language: python
|
||||
python:
|
||||
- '2.7'
|
||||
@ -10,7 +10,7 @@ script:
|
||||
- test -z "$TESTS_ONLY" || python -m unittest discover -v imgconverter -p test.py
|
||||
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
||||
env:
|
||||
- DIST_DOM0=fc29 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||
- DIST_DOM0=fc31 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||
- DISTS_VM=fc29 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||
- DISTS_VM=fc30 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||
- DISTS_VM=stretch USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||
@ -22,12 +22,14 @@ jobs:
|
||||
- env: TESTS_ONLY=1
|
||||
python: 2.7
|
||||
- env: TESTS_ONLY=1
|
||||
python: 3.4
|
||||
python: 3.5
|
||||
- env: TESTS_ONLY=1
|
||||
python: 3.5
|
||||
python: 3.6
|
||||
- env: TESTS_ONLY=1
|
||||
python: 3.7
|
||||
- stage: deploy
|
||||
python: 3.5
|
||||
env: DIST_DOM0=fc29 TESTS_ONLY=
|
||||
python: 3.6
|
||||
env: DIST_DOM0=fc31 TESTS_ONLY=
|
||||
script: ~/qubes-builder/scripts/travis-deploy
|
||||
|
||||
# don't build tags which are meant for code signing only
|
||||
|
20
debian/changelog
vendored
20
debian/changelog
vendored
@ -1,3 +1,23 @@
|
||||
qubes-utils (4.1.3) unstable; urgency=medium
|
||||
|
||||
[ xaki23 ]
|
||||
* partition full volatile for non-COW setups too
|
||||
|
||||
[ Frédéric Pierret (fepitre) ]
|
||||
* travis: switch to bionic
|
||||
|
||||
[ Marek Marczykowski-Górecki ]
|
||||
* travis: update python versions
|
||||
|
||||
[ Patrick Schleizer ]
|
||||
* qubes-kernel-vm-support.preinst create folder /boot/grub
|
||||
* qubes-kernel-vm-support.postinst run update-grub
|
||||
|
||||
[ Marek Marczykowski-Górecki ]
|
||||
* debian: fix dependencies of qubes-kernel-vm-support pkg
|
||||
|
||||
-- Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Sat, 07 Dec 2019 05:50:26 +0100
|
||||
|
||||
qubes-utils (4.1.2) unstable; urgency=medium
|
||||
|
||||
[ xaki23 ]
|
||||
|
7
debian/control
vendored
7
debian/control
vendored
@ -24,8 +24,11 @@ Description: Qubes Linux utilities
|
||||
|
||||
Package: qubes-kernel-vm-support
|
||||
Architecture: any
|
||||
Recommends: initramfs-tools
|
||||
Depends: ${misc:Depends}
|
||||
Depends:
|
||||
busybox,
|
||||
initramfs-tools | dracut,
|
||||
grub2-common,
|
||||
${misc:Depends}
|
||||
Description: Qubes VM kernel and initramfs modules
|
||||
This package contains:
|
||||
1. mkinitramfs module required to setup Qubes VM root filesystem. This package
|
||||
|
13
debian/qubes-kernel-vm-support.postinst
vendored
13
debian/qubes-kernel-vm-support.postinst
vendored
@ -46,6 +46,19 @@ esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
## https://phabricator.whonix.org/T377
|
||||
## Debian has no update-grub trigger yet:
|
||||
## https://bugs.debian.org/481542
|
||||
|
||||
if command -v update-grub >/dev/null 2>&1; then
|
||||
update-grub || \
|
||||
echo "$DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME ERROR: Running \
|
||||
'update-grub' failed with exit code $?. $DPKG_MAINTSCRIPT_PACKAGE is most \
|
||||
likely only the trigger, not the cause. Unless you know this is not an issue, \
|
||||
you should fix running 'update-grub', otherwise your system might no longer \
|
||||
boot." >&2
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
# vim: set ts=4 sw=4 sts=4 et :
|
||||
|
9
debian/qubes-kernel-vm-support.preinst
vendored
Normal file
9
debian/qubes-kernel-vm-support.preinst
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
mkdir --parents /boot/grub || true
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
@ -33,10 +33,6 @@ void send_status_and_crc(int code, const char *last_filename);
|
||||
#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
||||
#endif
|
||||
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 14)
|
||||
#define HAVE_SYNCFS
|
||||
#endif
|
||||
|
||||
void do_exit(int code, const char *last_filename)
|
||||
{
|
||||
close(0);
|
||||
@ -213,10 +209,8 @@ void process_one_file(struct file_header *untrusted_hdr)
|
||||
int do_unpack(void)
|
||||
{
|
||||
struct file_header untrusted_hdr;
|
||||
#ifdef HAVE_SYNCFS
|
||||
int cwd_fd;
|
||||
int saved_errno;
|
||||
#endif
|
||||
|
||||
total_bytes = total_files = 0;
|
||||
/* initialize checksum */
|
||||
@ -233,14 +227,10 @@ int do_unpack(void)
|
||||
process_one_file(&untrusted_hdr);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYNCFS
|
||||
saved_errno = errno;
|
||||
cwd_fd = open(".", O_RDONLY);
|
||||
if (cwd_fd >= 0 && syncfs(cwd_fd) == 0 && close(cwd_fd) == 0)
|
||||
errno = saved_errno;
|
||||
#else
|
||||
sync();
|
||||
#endif
|
||||
|
||||
send_status_and_crc(errno, untrusted_namebuf);
|
||||
return errno;
|
||||
|
Loading…
Reference in New Issue
Block a user