Darshaka Pathirana [Fri, 4 Dec 2020 10:00:08 +0000 (11:00 +0100)]
usr_bin/grml-exec-wrapper: Fix a couple of shellcheck warnings
- SC2059: Don't use variables in the printf format string.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Please note that SC2059 causes SC1117 (Backslash is literal in "\n".
Prefer explicit escaping: "\\n") in shellcheck 0.5.0 an below.
This check was retired due to noise in koalaman/shellcheck@
d8a32da07.
Darshaka Pathirana [Fri, 13 Nov 2020 15:43:40 +0000 (16:43 +0100)]
Add Code testing workflow
Implement code testing by running shellcheck against shell scripts,
flake8, isort + black against python scripts and spellintian against
man pages.
Codecheck can be executed via 'make codecheck'.
Spellcheck can be executed via 'make spellcheck'.
The Github Workflow is heavily inspired by the workflow of
sipwise/ngcpcfg make by @mika (Thx!).
'make help' is inspired by
https://www.thapaliya.com/en/writings/well-documented-makefiles/
by @suvash (Thx!)
Michael Prokop [Fri, 9 Jul 2021 07:16:28 +0000 (09:16 +0200)]
Release new version 2.10.0
Michael Prokop [Fri, 18 Jun 2021 17:15:06 +0000 (19:15 +0200)]
Merge remote-tracking branch 'origin/github/pr/12'
Michael Prokop [Wed, 9 Jun 2021 16:40:12 +0000 (18:40 +0200)]
grml-chroot: support efivarfs in EFI environments
CONFIG_EFI_VARS is no longer available since Debian kernel's git commit
20146398c4, and therefore efivars (the older interface handled from
within /sys) is gone with the kernel version shipped as of
Debian/bullseye (kernel >=5.10). Only the newer efivarfs interface is
supported, this requires explicit mounting of /sys/firmware/efi/efivars
though.
Therefore, whenever /sys/firmware/efi/efivars is available, we are
running in EFI mode and might need EFI support also in the chroot.
Accordingly mount it then.
This is related to the corresponding change in grml-debootstrap:
https://github.com/grml/grml-debootstrap/pull/174
Michael Prokop [Sun, 19 Jul 2020 16:09:38 +0000 (18:09 +0200)]
Release new version 2.9.1
Michael Prokop [Sun, 19 Jul 2020 15:54:57 +0000 (17:54 +0200)]
grml-lock: drop gdialog usage and don't wrap text in zenity
gdialog is a compatibility wrapper around zenity and encourages
users to switch to usage of zenity, let's follow this recommendation.
Older zenity versions (like 3.14.0) had a different wrapping
behavior than more current versions (like 3.30.0). To avoid
small dialogs with only one or two words on each line (which
is ugly and close to unreadable) let's avoid wrapping text.
While at it fix some minor issues reported by shellcheck.
This work was funded by Grml-Forensic.
Michael Prokop [Sun, 19 Jul 2020 15:53:57 +0000 (17:53 +0200)]
grml-info: drop support for deprecated gdialog and prefer zenity over Xdialog
gdialog is a wrapper around zenity and deprecated, so let's get rid of
it. Also prefer zenity over Xdialog, since the former is better looking.
Michael Prokop [Thu, 21 Mar 2019 11:26:05 +0000 (12:26 +0100)]
Release new version 2.9.0
Michael Prokop [Thu, 21 Mar 2019 09:12:56 +0000 (10:12 +0100)]
grml2ram: switch default mount point from /lib/live/mount/medium to /run/live/medium
In commit
0d878d3a679 of live-boot(-grml)
("Simplify mount point handling by using /run/live instead of /lib/live/mount")
the mountpath of /lib/live/mount/medium was moved towards /run/live/medium.
Commit
c6a17c7b41b of live-boot(-grml) provides a backward compatibility
rbind mount, but occasionally there seems to be a regression somewhere
during boot (see https://github.com/grml/live-boot-grml/issues/10), and
the rbind mount will be deprecated and removed before the bullseye
(Debian 11) release.
Layout changes over time:
* /cdrom for old linuxrc approach
* /live/image for initramfs layout until December 2012
* /lib/live/mount/medium for initramfs layout since December 2012
* /run/live/medium for initramfs layout since December 2018
Drop support for everything but /run/live/medium and
/lib/live/mount/medium, while at it.
Michael Prokop [Fri, 18 Jan 2019 13:22:28 +0000 (14:22 +0100)]
Release new version 2.8.4
Michael Prokop [Fri, 18 Jan 2019 13:20:00 +0000 (14:20 +0100)]
Fix some further typos
s/unuseable/unusable/
s/accessable/accessible/
s/Ressources/Resources/
s/funtions/functions/
Michael Prokop [Fri, 18 Jan 2019 13:17:08 +0000 (14:17 +0100)]
grml-setkeyboard + grml-setkeyboard{,.8}: fix typos
s/temporarly/temporarily/
s/existance/existence/
Thanks lintian :)
Michael Prokop [Fri, 18 Jan 2019 13:15:20 +0000 (14:15 +0100)]
Bump Standards-Version to 4.3.0
Michael Prokop [Fri, 18 Jan 2019 13:13:47 +0000 (14:13 +0100)]
grml-chroot: bind-mount /run/udev in target system as workaround for lvm2 issue #918590
Anything related to LVM tools takes ages with lvm 2.03.02-1 if /run/udev
isn't available in the target system, causing messages like:
| WARNING: Device /dev/[...] not initialized in udev database even after waiting
10000000 microseconds.
This /run/udev bind-mount is a workaround required for Debian/buster's
lvm2, at least until #918590 is resolved.
Michael Prokop [Sun, 30 Dec 2018 11:17:28 +0000 (12:17 +0100)]
Release new version 2.8.3
Michael Prokop [Sun, 30 Dec 2018 11:10:50 +0000 (12:10 +0100)]
grml-lang: use /etc/default/keyboard instead of /etc/sysconfig/keyboard
For proper font handling we switched to usage of console-setup and
keyboard-configuration packages. We adjusted grml-live and
grml-autoconfig to use /etc/default/keyboard instead of
/etc/sysconfig/keyboard. To better handle this also within grml-lang
itself, switch to usage of /etc/default/keyboard.
FTR, this is not the final and bullet-proof solution yet, but meant to
be fix the main issues (e.g. booting with Grml defaults, then pressing
'd' for german keyboard within grml-quickconfig and then starting X via
'x' within grml-quickoconfig), using a minimal approach.
Initial work addressing https://github.com/grml/grml/issues/115
Michael Prokop [Fri, 14 Dec 2018 10:38:19 +0000 (11:38 +0100)]
Release new version 2.8.2
Michael Prokop [Fri, 14 Dec 2018 08:37:33 +0000 (09:37 +0100)]
grml-chroot: iff /proc/cmdline exists don't try to mount again
There's no point in mounting /proc, /sys, /dev + /dev/pts
once again if it's mounted already. The easiest and cheapest
way to detect this is looking for file /proc/cmdline. If
/proc/cmdline exists assume that the chroot has the filesystems
mounted already.
Closes: https://github.com/grml/grml-scripts/issues/4
Michael Prokop [Thu, 15 Nov 2018 09:09:28 +0000 (10:09 +0100)]
Release new version 2.8.1
Michael Prokop [Thu, 15 Nov 2018 09:08:50 +0000 (10:08 +0100)]
Drop deprecated directories /etc/grml + /etc/postfix
We no longer ship any files in those directories,
so avoid shipping those empty directories.
Michael Prokop [Thu, 15 Nov 2018 09:04:18 +0000 (10:04 +0100)]
Switch Homepage + Vcs-Browser headers from http to https
Michael Prokop [Thu, 15 Nov 2018 09:04:12 +0000 (10:04 +0100)]
Bump Standards-Version to 4.2.1
Michael Prokop [Thu, 14 Jun 2018 16:05:52 +0000 (18:05 +0200)]
grml-lock: run physlock with `-u` option only if it's supported
Closes grml/grml#87
Thanks: maximebuy for the bugreport
Michael Prokop [Fri, 1 Jun 2018 15:00:52 +0000 (17:00 +0200)]
Release new version 2.8.0
Michael Prokop [Fri, 1 Jun 2018 14:59:48 +0000 (16:59 +0200)]
Drop reread_partition_table binary
Fails to build against recent fs.h versions:
| In file included from reread_partition_table.c:12:0:
| /usr/include/linux/fs.h:366:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__kernel_rwf_t'
| typedef int __bitwise __kernel_rwf_t;
| ^~~~~~~~~~~~~~
| make[1]: *** [Makefile:24: reread_partition_table] Error 1
It's not worth any further work, partprobe(8) does the
job as well and is maintained.
Michael Prokop [Fri, 1 Jun 2018 14:58:15 +0000 (16:58 +0200)]
Bump debian/compat to 10 and adjust Build-Depends for debhelper to v10
Michael Prokop [Fri, 1 Jun 2018 14:57:51 +0000 (16:57 +0200)]
Bump Standards-Version to 4.1.4
Michael Prokop [Fri, 1 Jun 2018 14:54:11 +0000 (16:54 +0200)]
run_welcome: drop unicode hack
The `umpkeys | loadkeys --unicode` recently triggers the following
error message during bootup:
| adding map 3 violates explicit keymap line
AFAICS this old hack is no longer needed, so let's try
without it.
Closes grml/grml#96
Michael Prokop [Fri, 16 Jun 2017 08:05:32 +0000 (10:05 +0200)]
Release new version 2.7.3
Michael Prokop [Wed, 10 May 2017 13:18:13 +0000 (15:18 +0200)]
grml-chroot: mount /dev/pts as devpts inside chroot
Fixes:
| E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Closes grml/grml#53
Michael Prokop [Fri, 16 Jun 2017 07:56:36 +0000 (09:56 +0200)]
Revert "grml-chroot: mount /dev/pts as devpts inside chroot"
This reverts commit
f29c425ad79cbe31fca61397cbd3d97347f32cd7.
This is causing troubles under certain conditions which leave the
system in an unfixable state, so we need a different approach.
See grml/grml#53
Michael Prokop [Wed, 24 May 2017 07:17:20 +0000 (09:17 +0200)]
Release new version 2.7.2
Evgeni Golov [Fri, 16 Oct 2015 15:09:50 +0000 (17:09 +0200)]
notifyd: fix typo in comment
Evgeni Golov [Fri, 16 Oct 2015 15:08:29 +0000 (17:08 +0200)]
notifyd: call aplay using subprocess.Popen + replace os.system with subprocess.call
Closes #2
Michael Prokop [Tue, 16 May 2017 13:13:00 +0000 (15:13 +0200)]
Release new version 2.7.1
Michael Prokop [Wed, 10 May 2017 13:53:35 +0000 (15:53 +0200)]
grml-chroot: mount /dev/pts as devpts inside chroot
Fixes:
| E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Thanks: András Korn for proposing the --rbind/--recursive approach
Michael Prokop [Fri, 30 Dec 2016 23:19:32 +0000 (00:19 +0100)]
Release new version 2.7.0
Michael Prokop [Fri, 30 Dec 2016 23:18:59 +0000 (00:18 +0100)]
Bump Standards-Version to 3.9.8
Michael Prokop [Fri, 30 Dec 2016 23:17:49 +0000 (00:17 +0100)]
grml-hostname: no longer rely on /etc/init.d/hostname.sh
/etc/init.d/hostname.sh was shipped with the initscripts,
but it doesn't necessarily exist anymore nowadays.
So instead directly invoke `hostname` as the init script
does as well.
Michael Prokop [Wed, 6 Jan 2016 11:34:53 +0000 (12:34 +0100)]
Release new version 2.6.1
Michael Prokop [Wed, 6 Jan 2016 11:31:45 +0000 (12:31 +0100)]
Add script run-journalctl + use /bin/sh for all run-* wrappers
The script run-journalctl is for usage on tty12 on Grml systems
which are powered by systemd and therefore provoding journalctl.
Michael Prokop [Wed, 8 Jul 2015 13:19:18 +0000 (15:19 +0200)]
Release new version 2.6.0
Michael Prokop [Wed, 8 Jul 2015 13:19:01 +0000 (15:19 +0200)]
Run wrap-and-sort on debian directory
Michael Prokop [Wed, 8 Jul 2015 13:18:47 +0000 (15:18 +0200)]
Bump Standards-Version to 3.9.6
Michael Prokop [Wed, 8 Jul 2015 13:17:21 +0000 (15:17 +0200)]
grml-lock: switch from vlock to physlock [Closes: issue1342]
Add physlock package to Recommends.
Michael Prokop [Sat, 19 Apr 2014 13:41:01 +0000 (15:41 +0200)]
Release new version 2.5.2
Michael Prokop [Fri, 18 Apr 2014 20:53:34 +0000 (22:53 +0200)]
grml-lang: support language settings for Italy
Thanks: Marco d'Itri <md@Linux.IT>
Michael Prokop [Fri, 7 Feb 2014 07:56:27 +0000 (08:56 +0100)]
Release new version 2.5.1
Michael Prokop [Fri, 7 Feb 2014 07:56:07 +0000 (08:56 +0100)]
grml-lock: fix typo (s/to/do/)
Michael Prokop [Wed, 5 Feb 2014 08:36:32 +0000 (09:36 +0100)]
Release new version 2.5.0
Michael Prokop [Wed, 5 Feb 2014 08:36:15 +0000 (09:36 +0100)]
Bump Standards-Version to 3.9.5
Michael Prokop [Wed, 5 Feb 2014 08:29:10 +0000 (09:29 +0100)]
Statically compile grml-runtty to avoid dependency on unstable's libc
It's annoying if grml-scripts can't be updated any longer on
systems based for example on Debian/wheezy, so let's get rid
of the dependency on libc.
Compiling requires -lcompat, otherwise fails with:
| undefined reference to `clearenv'
Michael Prokop [Fri, 13 Sep 2013 08:22:36 +0000 (10:22 +0200)]
Release new version 2.4.1
Markus Rekkenbeil [Fri, 13 Sep 2013 08:09:40 +0000 (10:09 +0200)]
Remove the script grml-config and set a symlink to grml-config-root
Signed-off-by: Markus Rekkenbeil <bionix@grml.org>
Markus Rekkenbeil [Thu, 12 Sep 2013 18:40:37 +0000 (20:40 +0200)]
Fix: Erase all forgotten stuff from grml-config-user [Closes: issue1272]
Signed-off-by: Markus Rekkenbeil <bionix@grml.org>
Michael Prokop [Wed, 4 Sep 2013 15:14:41 +0000 (17:14 +0200)]
Release new version 2.4.0
Michael Prokop [Tue, 20 Aug 2013 08:53:07 +0000 (10:53 +0200)]
grml-lang: sort languages alphabetically
Ziirish [Fri, 19 Apr 2013 10:30:24 +0000 (12:30 +0200)]
add: french keymap support to grml-lang
Michael Prokop [Mon, 14 Jan 2013 13:01:40 +0000 (14:01 +0100)]
Release new version 2.3.1
Michael Prokop [Mon, 14 Jan 2013 13:00:46 +0000 (14:00 +0100)]
grml2ram: fix usage of LIVECD_PATH variable together with MEDIA_PATH
Michael Prokop [Fri, 11 Jan 2013 12:45:19 +0000 (13:45 +0100)]
Release new version 2.3.0
Michael Prokop [Fri, 11 Jan 2013 12:17:07 +0000 (13:17 +0100)]
grml2ram: adjust live image handling for new live-boot directory
Thanks: Pawel Sadkowski <azhag@dug.net.pl> for reporting and testing
Michael Prokop [Mon, 17 Dec 2012 12:05:38 +0000 (13:05 +0100)]
Release new version 2.2.2
Michael Prokop [Mon, 17 Dec 2012 12:05:21 +0000 (13:05 +0100)]
Bump Standards-Version to 3.9.4
Michael Prokop [Tue, 11 Sep 2012 13:12:41 +0000 (15:12 +0200)]
grml-scripts manpage: no longer mention deprecated align script
Michael Prokop [Wed, 5 Sep 2012 10:48:25 +0000 (12:48 +0200)]
Release new version 2.2.1
Michael Prokop [Wed, 5 Sep 2012 09:22:46 +0000 (11:22 +0200)]
blacklist: fix indention
Michael Prokop [Wed, 5 Sep 2012 09:22:26 +0000 (11:22 +0200)]
blacklist: check for -h/--help option
Michael Prokop [Wed, 5 Sep 2012 09:21:14 +0000 (11:21 +0200)]
blacklist: replace 'modprobe -l' command with modinfo(8) command line
Thanks kmod for deprecating 'modprobe -l'.
Michael Prokop [Mon, 3 Sep 2012 12:15:54 +0000 (14:15 +0200)]
Release new version 2.2.0
Michael Prokop [Mon, 3 Sep 2012 10:43:44 +0000 (12:43 +0200)]
grml-hostname: reject invalid hostnames
The check doesn't fully verify RFC 952, but it catches some
known-problematic situations and it's better than nothing.
Closes: gf-issue127
Thanks: Evgeni Golov for review
Michael Prokop [Mon, 23 Jul 2012 15:47:26 +0000 (17:47 +0200)]
Drop lodgeit script as paste.pocoo.org was discontinued [Closes: issue1199]
Thanks: Ulrich Dangel <mru@grml.org> for the bugreport
Michael Prokop [Fri, 22 Jun 2012 20:43:49 +0000 (22:43 +0200)]
Release new version 2.1.0
Michael Prokop [Fri, 22 Jun 2012 20:41:33 +0000 (22:41 +0200)]
grml-hostname: restart avahi-daemon service if present and running
Quoting http://bts.grml.org/grml/issue1182:
| When booting a machine with the hostname parameter avahi
| exports the grml hostname even though another hostname was specified.
Testing: issue1182
Thanks: Ulrich Dangel for the bugreport
Michael Prokop [Tue, 12 Jun 2012 14:01:09 +0000 (16:01 +0200)]
Drop deprecated package grml-docs from Suggest
Michael Prokop [Tue, 12 Jun 2012 13:58:30 +0000 (15:58 +0200)]
Drop grml-mutt, grml-slrn + accordingly grml-config-user
We don't ship mutt nur slrn any longer and no one is maintaining
those scripts. If anyone is really using this script let's find
those users with this change. :)
Michael Prokop [Mon, 28 May 2012 10:51:40 +0000 (12:51 +0200)]
Release new version 2.0.7
Michael Prokop [Mon, 28 May 2012 10:49:43 +0000 (12:49 +0200)]
make_chroot_jail: suppport sudo configuration via /etc/sudoers.d
Michael Prokop [Mon, 28 May 2012 10:48:33 +0000 (12:48 +0200)]
make_chroot_jail: redirect error messages to stderr
This script could need some serious love, in the meanwhile
backport minor fixes from $customers_project.
Michael Prokop [Mon, 28 May 2012 10:41:35 +0000 (12:41 +0200)]
run-welcome: drop references to deprecated wiki page, replace mail address with grml.org/bugs/
Thanks: Christoph Biedl for the bugreport
Michael Prokop [Wed, 9 May 2012 10:32:40 +0000 (12:32 +0200)]
Release new version 2.0.6
Michael Prokop [Wed, 9 May 2012 10:32:25 +0000 (12:32 +0200)]
Bump Standards-Version to 3.9.3.
Michael Prokop [Fri, 24 Feb 2012 16:04:09 +0000 (17:04 +0100)]
grml2ram manpage: update space requirements
Thanks: Thomas Arendsen Hein
Michael Prokop [Fri, 13 Jan 2012 00:01:50 +0000 (01:01 +0100)]
Release new version 2.0.5
Michael Prokop [Thu, 12 Jan 2012 23:58:34 +0000 (00:58 +0100)]
grml-hostname: improve regex for hostname matching [Closes: issue1005]
Do not trust on output of hostname(1) as this might not
necessarily be what's used inside /etc/hosts. This
is supposed to work on Grml systems as well as on Debian.
While at it also use same formating WRT whitespace chars
when replacing the localhost line(s).
Michael Prokop [Mon, 9 Jan 2012 15:33:02 +0000 (16:33 +0100)]
Release new version 2.0.4
Ulrich Dangel [Tue, 27 Dec 2011 22:34:47 +0000 (23:34 +0100)]
Try to determine live-media-path and fallback to first squashfs file.
Add missing semicolon to inline perl code.
Michael Prokop [Thu, 8 Dec 2011 13:37:05 +0000 (14:37 +0100)]
Release new version 0.2.3
Michael Prokop [Wed, 7 Dec 2011 12:08:44 +0000 (13:08 +0100)]
run-welcome: use different beep sequence
Don't sound too similar to avira…
Michael Prokop [Sat, 26 Nov 2011 17:10:22 +0000 (18:10 +0100)]
Release new version 2.0.2
Christian Hofstaedtler [Fri, 25 Nov 2011 14:10:08 +0000 (15:10 +0100)]
Add welcome beep (disable with nobeep)
Christian Hofstaedtler [Thu, 17 Nov 2011 08:50:14 +0000 (09:50 +0100)]
Remove X11R6 from run-welcome PATH
Christian Hofstaedtler [Tue, 15 Nov 2011 14:37:36 +0000 (15:37 +0100)]
Remove wm-ng
Michael Prokop [Mon, 7 Nov 2011 13:13:11 +0000 (14:13 +0100)]
drop XF86Audio{LowerVolume,Mute,RaiseVolume} scripts [Closes: issue626]
they don't work on recent hardware reliably anymore and
would require a rewrite anyway...
Christian Hofstaedtler [Mon, 7 Nov 2011 11:56:24 +0000 (12:56 +0100)]
grml-chroot: write /etc/debian_chroot [Closes: issue953]
Christian Hofstaedtler [Fri, 14 Oct 2011 15:03:18 +0000 (17:03 +0200)]
Release version 2.0.1.
Christian Hofstaedtler [Fri, 14 Oct 2011 10:08:47 +0000 (12:08 +0200)]
grml-runtty MUST set PATH
Christian Hofstaedtler [Thu, 13 Oct 2011 20:36:29 +0000 (22:36 +0200)]
Release new version 2.0.0.
Christian Hofstaedtler [Thu, 13 Oct 2011 20:35:40 +0000 (22:35 +0200)]
Remove grml-start (which was a tiny grml-info)