~likan/toolbox/+git/ppa:master

Last commit made on 2020-09-23
Get this branch:
git clone -b master https://git.launchpad.net/~likan/toolbox/+git/ppa

Branch merges

Branch information

Name:
master
Repository:
lp:~likan/toolbox/+git/ppa

Recent commits

40e7e60... by =?utf-8?b?T25kxZllaiBNw61jaGFs?= <email address hidden>

zuul: Really enable system tests on Fedora 33

The tests were defined but not actually enabled in any pipeline.

Fallout from https://github.com/containers/toolbox/pull/550

ff4e490... by =?utf-8?b?T25kxZllaiBNw61jaGFs?= <email address hidden>

zuul, playbooks: Enable system tests on Fedora 33

https://github.com/containers/toolbox/pull/550

0c08a42... by Ryan McGuire

cmd/run: Don't break GNU Readline's ctrl-p shortcut

Podman sets 'ctrl-p ctrl-q' as the default key sequence for detaching
a container. This breaks the ctrl-p shortcut that's equivalent to the
up arrow key in GNU Readline environments like Bash and Emacs.
Moreoever, toolbox containers aren't meant to be detached in the first
place.

Since Podman 1.8.1, it is now possible to unset the key sequence for
detaching [2, 3].

[0] https://tiswww.cwru.edu/php/chet/readline/readline.html#SEC15

[1] https://www.gnu.org/software/emacs/tour/

[2] Podman commit 7c623bd41ff3d534
    https://github.com/containers/podman/issues/4208

[3] Podman commit ebfd253fc658ffc9
    https://github.com/containers/podman/issues/5166

https://github.com/containers/toolbox/issues/394

9840ca5... by Leonard/Janis

pkg/utils: Update default release to 31 for non-fedora hosts

Fedora 30 reached End of Life on 26th May:
https://fedoraproject.org/wiki/End_of_life

https://github.com/containers/toolbox/pull/546

b3f0a50... by Debarshi Ray <email address hidden>

Prepare 0.0.95

9ea6fe5... by Debarshi Ray <email address hidden>

Unbreak 'sudo' inside toolbox containers with Podman 2.0.5

Since Podman 2.0.5, containers that were created with
'podman create --userns=keep-id ...' automatically get the user added
to /etc/passwd [1]. However, this user isn't as fully configured as it
needs to be. The home directory is specified as '/' and the shell is
/bin/sh.

Note that Podman doesn't add the user's login group to /etc/group [2].
This leads to the following error message when entering the container:
  /usr/bin/id: cannot find name for group ID 1000

It's expected that this will be fixed in Podman itself.

Therefore, the entry point needs to call usermod(8) to update the user,
instead of using useradd(8) to create it.

[1] Podman commit 6c6670f12a3e6b91
    https://github.com/containers/podman/pull/6829

[2] https://github.com/containers/podman/issues/7389

https://github.com/containers/toolbox/issues/523

59f4a79... by Debarshi Ray <email address hidden>

cmd/initContainer: Split out the code to configure the user

This will make the subsequent commit easier to read.

https://github.com/containers/toolbox/issues/523

15173f8... by Martin Pitt

Unbreak 'enter' on Fedora CoreOS

... and other hybrid set-ups where the host and container OSes aren't
the same.

The entry point of a toolbox container already runs as root:root.
Therefore, there's no need to run it with an additional group.
Interactive shells spawned by 'sudo su -' both inside the container
and on the host don't run with such an additional group either. They
run just as root:root.

This prevented toolbox containers from starting up on Fedora CoreOS
hosts, because CoreOS has both the 'sudo' and 'wheel' groups but the
fedora-toolbox images only have the 'wheel' group. Therefore, it
ended up calling 'podman create --group-add sudo ...', and since the
'sudo' group was missing from the image, the container failed to start.

The --group-add flag was added in commit 4bda42d4146f3d3b when the
entry point ran as $USER as specified in the user-specific customized
image. The additional group was specified to retain consistency with
interactive shells run as $USER.

Since then, things have changed. There's no longer any user-specific
customized image and commit f74400f4500f0ed6 made the entry point run
as root:root. The --group-add flag should have been removed as part of
those changes.

https://github.com/containers/toolbox/issues/423

3b6b9e9... by Martin Pitt

cmd/initContainer: Fix typo

Fallout from 772b66bf3e962785730e55f6242fa74066de0743

https://github.com/containers/toolbox/pull/545

166b09b... by Debarshi Ray <email address hidden>

profile.d: Warn if $TERM has no terminfo entry in the container

It tries to loosely mimic ncurses to look up a terminfo entry for the
current terminal, as mentioned in the terminfo(5) manual. Unlike
ncurses, it doesn't handle TERMINFO_DIRS, though, to avoid parsing an
array of directories for the sake of simplicity.

Every line of code in this file is part of the interactive shell's
start-up sequence, which makes it a trade-off between correctness and
speed. Therefore, the purpose of this warning is not to exhaustively
catch all possible corner cases, but to serve as a convenience in the
majority of cases. Ultimately, if someone is using an exotic terminal
set-up, then a missing warning is a minor price to pay in order to not
slow things down for the vast majority of users who don't.

Based on code written by Mert Alp Taytak:
https://github.com/containers/toolbox/pull/515

https://github.com/containers/toolbox/issues/505