control: tags -1 + pending Hi Michael,
Michael Biebl <[email protected]> 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 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

