Compare commits
No commits in common. "master" and "mm_699e10c0" have entirely different histories.
master
...
mm_699e10c
14
.travis.yml
14
.travis.yml
@ -1,5 +1,5 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
dist: bionic
|
dist: xenial
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- '2.7'
|
- '2.7'
|
||||||
@ -10,7 +10,7 @@ script:
|
|||||||
- test -z "$TESTS_ONLY" || python -m unittest discover -v imgconverter -p test.py
|
- test -z "$TESTS_ONLY" || python -m unittest discover -v imgconverter -p test.py
|
||||||
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
||||||
env:
|
env:
|
||||||
- DIST_DOM0=fc31 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
- DIST_DOM0=fc29 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=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=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
|
- DISTS_VM=stretch USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
|
||||||
@ -21,15 +21,13 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- env: TESTS_ONLY=1
|
- env: TESTS_ONLY=1
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
- env: TESTS_ONLY=1
|
||||||
|
python: 3.4
|
||||||
- env: TESTS_ONLY=1
|
- env: TESTS_ONLY=1
|
||||||
python: 3.5
|
python: 3.5
|
||||||
- env: TESTS_ONLY=1
|
|
||||||
python: 3.6
|
|
||||||
- env: TESTS_ONLY=1
|
|
||||||
python: 3.7
|
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
python: 3.6
|
python: 3.5
|
||||||
env: DIST_DOM0=fc31 TESTS_ONLY=
|
env: DIST_DOM0=fc29 TESTS_ONLY=
|
||||||
script: ~/qubes-builder/scripts/travis-deploy
|
script: ~/qubes-builder/scripts/travis-deploy
|
||||||
|
|
||||||
# don't build tags which are meant for code signing only
|
# don't build tags which are meant for code signing only
|
||||||
|
20
debian/changelog
vendored
20
debian/changelog
vendored
@ -1,23 +1,3 @@
|
|||||||
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
|
qubes-utils (4.1.2) unstable; urgency=medium
|
||||||
|
|
||||||
[ xaki23 ]
|
[ xaki23 ]
|
||||||
|
7
debian/control
vendored
7
debian/control
vendored
@ -24,11 +24,8 @@ Description: Qubes Linux utilities
|
|||||||
|
|
||||||
Package: qubes-kernel-vm-support
|
Package: qubes-kernel-vm-support
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends:
|
Recommends: initramfs-tools
|
||||||
busybox,
|
Depends: ${misc:Depends}
|
||||||
initramfs-tools | dracut,
|
|
||||||
grub2-common,
|
|
||||||
${misc:Depends}
|
|
||||||
Description: Qubes VM kernel and initramfs modules
|
Description: Qubes VM kernel and initramfs modules
|
||||||
This package contains:
|
This package contains:
|
||||||
1. mkinitramfs module required to setup Qubes VM root filesystem. This package
|
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,19 +46,6 @@ esac
|
|||||||
|
|
||||||
#DEBHELPER#
|
#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
|
exit 0
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 sts=4 et :
|
# vim: set ts=4 sw=4 sts=4 et :
|
||||||
|
9
debian/qubes-kernel-vm-support.preinst
vendored
9
debian/qubes-kernel-vm-support.preinst
vendored
@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir --parents /boot/grub || true
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
|
@ -33,6 +33,10 @@ void send_status_and_crc(int code, const char *last_filename);
|
|||||||
#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 14)
|
||||||
|
#define HAVE_SYNCFS
|
||||||
|
#endif
|
||||||
|
|
||||||
void do_exit(int code, const char *last_filename)
|
void do_exit(int code, const char *last_filename)
|
||||||
{
|
{
|
||||||
close(0);
|
close(0);
|
||||||
@ -209,8 +213,10 @@ void process_one_file(struct file_header *untrusted_hdr)
|
|||||||
int do_unpack(void)
|
int do_unpack(void)
|
||||||
{
|
{
|
||||||
struct file_header untrusted_hdr;
|
struct file_header untrusted_hdr;
|
||||||
|
#ifdef HAVE_SYNCFS
|
||||||
int cwd_fd;
|
int cwd_fd;
|
||||||
int saved_errno;
|
int saved_errno;
|
||||||
|
#endif
|
||||||
|
|
||||||
total_bytes = total_files = 0;
|
total_bytes = total_files = 0;
|
||||||
/* initialize checksum */
|
/* initialize checksum */
|
||||||
@ -227,10 +233,14 @@ int do_unpack(void)
|
|||||||
process_one_file(&untrusted_hdr);
|
process_one_file(&untrusted_hdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SYNCFS
|
||||||
saved_errno = errno;
|
saved_errno = errno;
|
||||||
cwd_fd = open(".", O_RDONLY);
|
cwd_fd = open(".", O_RDONLY);
|
||||||
if (cwd_fd >= 0 && syncfs(cwd_fd) == 0 && close(cwd_fd) == 0)
|
if (cwd_fd >= 0 && syncfs(cwd_fd) == 0 && close(cwd_fd) == 0)
|
||||||
errno = saved_errno;
|
errno = saved_errno;
|
||||||
|
#else
|
||||||
|
sync();
|
||||||
|
#endif
|
||||||
|
|
||||||
send_status_and_crc(errno, untrusted_namebuf);
|
send_status_and_crc(errno, untrusted_namebuf);
|
||||||
return errno;
|
return errno;
|
||||||
|
Loading…
Reference in New Issue
Block a user