Bug 41977 - Help users by re-running apt-get under systemd-run
Summary: Help users by re-running apt-get under systemd-run
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-16 21:53 MSK by Vitaly Chikunov
Modified: 2022-03-22 14:43 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Chikunov 2022-02-16 21:53:08 MSK
Help naïve users running apt-get install in xterm or over ssh by (creating systemd session by) re-running apt-get under systemd-run. [Of course if systemd is available.]

Perhaps, under `systemd-run --scope --user`.
Comment 1 Ivan A. Melnikov 2022-02-17 10:45:29 MSK
(In reply to Vitaly Chikunov from comment #0)
> Help naïve users running apt-get install in xterm or over ssh by (creating
> systemd session by) re-running apt-get under systemd-run. [Of course if
> systemd is available.]
> 
> Perhaps, under `systemd-run --scope --user`.

Probably, lingering should also be enabled while apt runs.
Comment 2 Vitaly Chikunov 2022-03-13 23:18:48 MSK
Alternative solution is built in https://git.altlinux.org/tasks/296591/ -- apt-get is wrapped with a child sub-reaper which does not exit until all created tasks (such as pdeath_execute) are finished. Because of this we don't need to defend them against systemd or reboot.

ps. This will not protect in case of terminal window closing, but, perhaps, systemd-run would not protect against this (not tested), because there is output to a terminal. I believe that only something similar to screen/tmux would protect from this.
Comment 3 Vitaly Chikunov 2022-03-22 00:38:36 MSK
[#296591] DONE (try 4) apt.git=0.5.15lorg2-alt76
Comment 4 Andrew Vasilyev 2022-03-22 14:43:00 MSK
Спасибо! Давно ждали!