Commit Graph

23 Commits

Author SHA1 Message Date
aabacchus
c6c851b645 kiss-chroot: fix trap
If the chroot is exited with nonzero status, kiss-chroot runs `die
chroot failed`. Then, die runs `exit 1` which causes the trap to
execute. However, in this scope, "$@" is "chroot failed", so the trap
evaluates $1 to be "chroot" rather than the mountpoint given to the
kiss-chroot script. Then, the trap tries to unmount "chroot/dev" etc
rather than the true mountpoint.

This patch uses double quotes rather than single when setting the trap,
so that $1 is expanded then and the mountpoint is stored for when the
trap is called.
2022-08-05 21:24:43 +05:30
Dylan Araps
9f31e3db97
kiss-chroot: Minor changes. Closes #286 2021-11-04 07:42:09 +02:00
Dylan Araps
5f82eb3ca0
kiss-chroot: set LOGNAME 2021-07-19 19:50:25 +03:00
Dylan Araps
51e71f970a
kiss-chroot: default to -O2 2021-07-12 11:16:33 +03:00
Dylan Araps
15e7621d9f
kiss-chroot: improvements
- now displays exact commands which are executed on enter/leave.
- cleaned up code.
2021-07-03 14:13:07 +00:00
Dylan Araps
e9a2e3472b kiss-chroot: Mount /dev/shm, /dev/pts, /tmp and /run 2021-06-30 09:01:52 +00:00
Dylan Araps
7695d003f5
kiss-chroot: Removed old envar 2020-08-11 10:59:51 +03:00
Dylan Araps
5c6898f143
kiss-chroot: Allow some things to fail. 2020-07-31 09:53:52 +03:00
Dylan Araps
757795ebbc
kiss-chroot: Use values from host 2020-06-13 21:14:58 +03:00
Dylan Araps
e43dd77469
contrib: Fix portability issues 2020-05-15 09:58:16 +03:00
Dylan Araps
a11d48d595
kiss-chroot: Automatically mount efivars 2020-05-01 20:13:23 +03:00
Dylan Araps
ad280931e5
contrib: Make doc strings match KISS' 2020-05-01 09:07:20 +03:00
Dylan Araps
10333def43
kiss: Further simplify utilities. 2020-04-18 12:27:38 +03:00
Dylan Araps
fdf2775640
kiss: Integrate with user scripts.
kiss' help output will now include all executables found in $PATH
which begin with kiss-*. A comment string is optionally usable via
setting the second line of the script to a string.

Example:

...

This also means that 'kiss <script name>' is also possible now.
If I have a script in my $PATH called kiss-depends, I can now use
it via kiss with 'kiss depends'.
2020-04-18 11:39:37 +03:00
Dylan Araps
58b0272574
kiss: Minor changes 2020-03-25 11:59:15 +02:00
Dylan Araps
2136399986
kiss-chroot: Fix cxxflags. Closes #123 2020-03-13 11:04:34 +02:00
Dylan Araps
4cbe2cb42e
kiss-chroot: Set CFLAGS/CXXFLAGS via $2 2020-03-13 00:11:18 +02:00
Dylan Araps
e9291d6d03
kiss-choot: Allow arch to be set via $2 2020-03-12 23:58:38 +02:00
Dylan Araps
4b3430f301
kiss: Allow user to force kiss to run as root 2020-01-29 09:05:12 +02:00
Adam Schaefers
d9583b83ed
Remove a problematic '/' slash 2020-01-03 18:48:24 -08:00
Adam Schaefers
9985344d25
Only copy resolv.conf from host if it doesn't exist 2019-12-10 01:12:26 -08:00
Adam Schaefers
f453d0f99f
don't copy /etc/resolv.conf if file exists, don't rm it on clean 2019-12-08 00:10:02 -08:00
Dylan Araps
49cfb7cac2
kiss: Merge kiss-utils and kiss 2019-10-30 10:51:48 +00:00