[Pkg-systemd-maintainers] Bug#719527: include whether machine was rebooted after upgrading in the bugscript

Michael Stapelberg stapelberg at debian.org
Wed Aug 14 12:36:09 BST 2013


control: tags -1 + pending

Hi Michael,

Michael Biebl <biebl at debian.org> writes:
> What about this simple idea?
> 3) preinst:
> [ -d /run/systemd/system ] && systemctl --version >> /run/systemd-upgrade
>
> If someone upgrade e.g. from v44 → 204-1, then 204-2, then files the
> bug, we could attach the file, to get a trail of the versions he
> upgraded from?
Excellent idea, thanks! :)

I implemented this and tested it on machines running systemd and not
running systemd. Here is the output when not running systemd:

$ cat /run/systemd-upgrade 
[preinst] package 204-2 systemd 

and here is the output when running systemd:

$ sudo dpkg -i systemd_204-2_amd64.deb
(Reading database ... 421576 files and directories currently installed.)
Preparing to replace systemd 204-1 (using systemd_204-2_amd64.deb) ...
Unpacking replacement systemd ...
Setting up systemd (204-2) ...
Processing triggers for man-db ...

$ cat /run/systemd-upgrade 
[preinst] package 204-1 systemd systemd 204
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL
+XZ

$ sudo dpkg -i systemd_204-2_amd64.deb
(Reading database ... 421575 files and directories currently installed.)
Preparing to replace systemd 204-2 (using systemd_204-2_amd64.deb) ...
Unpacking replacement systemd ...
Setting up systemd (204-2) ...
Processing triggers for man-db ...

$ cat /run/systemd-upgrade         
[preinst] package 204-1 systemd systemd 204
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL
+XZ
[preinst] package 204-2 systemd systemd 204
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL
+XZ

-- 
Best regards,
Michael



More information about the Pkg-systemd-maintainers mailing list