mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
container: Avoid a warning that interactive mode is intended
Currently, with recent version of systemd on host machine, running './container up' results in the following warning thrown many times. Fix this. Console mode 'pipe' selected, but standard input/output are connected to an interactive TTY. Most likely you want to use 'interactive' console mode for proper interactivity and shell job control. Proceeding anyway. Tests: - With systemd version 248 on host machine, run './container up' and notice that warning is no longer printed. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
41ebb5d687
commit
e89b0ee276
@ -551,7 +551,12 @@ def _resize_disk_image(image_file, new_size):
|
|||||||
|
|
||||||
def _get_nspawn_command(image_file):
|
def _get_nspawn_command(image_file):
|
||||||
"""Return the base nspwan command."""
|
"""Return the base nspwan command."""
|
||||||
pipe_argument = ['--pipe'] if systemd_version > 241 else []
|
pipe_argument = []
|
||||||
|
if systemd_version >= 247:
|
||||||
|
pipe_argument = ['--console=autopipe']
|
||||||
|
elif systemd_version > 241:
|
||||||
|
pipe_argument = ['--console=pipe']
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'sudo',
|
'sudo',
|
||||||
'systemd-nspawn',
|
'systemd-nspawn',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user