grml-scripts.git
3 weeks agoRelease new version 2.11.1 master v2.11.1
Michael Prokop [Tue, 7 Jun 2022 13:59:41 +0000 (15:59 +0200)]
Release new version 2.11.1

3 weeks agogrml_chroot: fix broken mount argument handling
Michael Prokop [Tue, 7 Jun 2022 13:58:34 +0000 (15:58 +0200)]
grml_chroot: fix broken mount argument handling

Commit b4a4893b0b6 broke behavior of the grml-chroot script, as it then
passed all mount options as single argument, which then fails:

| + all_options_='-t proc none'
| + mount '-t proc none' /mnt/proc
| mount: /mnt/proc: can't find in /etc/fstab.
| + mountit sysfs sys
| [...]

Convert mount options into an array, to properly work also with quotes.

3 weeks agoDrop debian/compat and switch to debhelper-compat approach
Michael Prokop [Fri, 3 Jun 2022 14:48:50 +0000 (16:48 +0200)]
Drop debian/compat and switch to debhelper-compat approach

5 weeks agogithub actions: ensure our apt cache is up2date
Michael Prokop [Thu, 19 May 2022 09:25:23 +0000 (11:25 +0200)]
github actions: ensure our apt cache is up2date

Otherwise we might end up with outdated mirror information:

| Err:77 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 lintian all 2.62.0ubuntu2
|   404  Not Found [IP: 40.119.46.219 80]
| Fetched 4172 kB in 4s (951 kB/s)
| E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/l/lintian/lintian_2.62.0ubuntu2_all.deb  404  Not Found [IP: 40.119.46.219 80]
| E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Gbp-Dch: Ignore

7 weeks agoRelease new version 2.11.0 v2.11.0
Michael Prokop [Fri, 6 May 2022 12:08:16 +0000 (14:08 +0200)]
Release new version 2.11.0

7 weeks agoMerge remote-tracking branch 'origin/github/pr/11'
Michael Prokop [Fri, 6 May 2022 10:24:08 +0000 (12:24 +0200)]
Merge remote-tracking branch 'origin/github/pr/11'

6 months agogrepedit/notifyd.py: Convert to Python 3
Darshaka Pathirana [Fri, 7 May 2021 15:40:57 +0000 (17:40 +0200)]
grepedit/notifyd.py: Convert to Python 3

Run the following commands:

  % 2to3-2.7 -w usr_bin/grepedit
  % isort usr_bin/grepedit
  % black usr_bin/grepedit

In grepedit the following print statement has been split manually:

+                print(
+                    "%s:%s has changed since the grep command ran- "
+                    "not modifying this line" % key
+                )

And:

  % 2to3-2.7 -w usr_bin/notifyd.py
  % black usr_bin/notifyd.py
  % isort usr_bin/notifyd.py

In notifyd.py added some ignore statements/comments (for the examples
which were actually comments).

The following errors/warnings were fixed manually:

  ❯ flake8 --max-line-length 88 usr_bin/notifyd.py
  usr_bin/notifyd.py:201:1: E741 ambiguous variable name 'l'
  usr_bin/notifyd.py:214:5: E722 do not use bare 'except'

Variable 'l' has been renamed to 'listen' and the bare 'except' has been
changed to catch 'OSError' as described in the socket documentation:
https://docs.python.org/3/library/socket.html

grepedit + notifyd.py + osd_server.py has not been functionally tested.
Please test. (But this is not the scope of this change, as it had to be
dropped anyway as it is missing Python 3 support. If an errors occurs,
please file a bug report.)

black defaults to line length 88 and flake to 79.
Decided to go set --max-line-length 88 for flake8.

Note that osd_server.py is just a symlink to notifyd.py.

6 months agogrml-swapon.8: Fix spelling (via spellintian)
Darshaka Pathirana [Fri, 7 May 2021 14:23:41 +0000 (16:23 +0200)]
grml-swapon.8: Fix spelling (via spellintian)

6 months agoMakefile: return error if a check fails
Darshaka Pathirana [Sat, 24 Apr 2021 22:25:29 +0000 (00:25 +0200)]
Makefile: return error if a check fails

Make target pythoncheck (and codecheck) did not fail if the last tested
file was error-free. Now we set RETURN=1 if only one check fails.

While at it also created separate targets for flake8, black and isort,
but also added --keep-going option when running 'make codecheck' so that all
targets are run.

Added @ in front of each command to hide the command which makes the
output more readable.

Spellcheck SC1117 (Backslash is literal in "\n") is no longer emitted
(with shellcheck after v0.5), thats why it is removed.

Please note, that spellintian does not return an error code if an
incorrect spelling is found, that is why this ugly hack had to be
implemented.

6 months agousr_share/run-screen: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:53:23 +0000 (17:53 +0100)]
usr_share/run-screen: Fix a couple of shellcheck warnings

- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.

6 months agousr_sbin/noprompt: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:51:55 +0000 (17:51 +0100)]
usr_sbin/noprompt: Fix a couple of shellcheck warnings

- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
- SC2086: Double quote to prevent globbing and word splitting.

6 months agousr_share/run-welcome: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:47:28 +0000 (17:47 +0100)]
usr_share/run-welcome: Fix a couple of shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/sh-lib was not specified as input (see shellcheck -x).
- SC2046: Quote this to prevent word splitting.
- SC2230: which is non-standard. Use builtin 'command -v' instead.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2230: which is non-standard. Use builtin 'command -v' instead.

6 months agousr_sbin/noeject: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:44:24 +0000 (17:44 +0100)]
usr_sbin/noeject: Fix a couple of shellcheck warnings

- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
- SC2086: Double quote to prevent globbing and word splitting.

6 months agoMakefile: Do not shellcheck make_chroot_jail
Darshaka Pathirana [Fri, 5 Mar 2021 16:35:58 +0000 (17:35 +0100)]
Makefile: Do not shellcheck make_chroot_jail

make_chroot_jail is not developed by the Grml-Team but causes a lot of shellcheck warnings.

6 months agousr_sbin/grml-setservices: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:28:50 +0000 (17:28 +0100)]
usr_sbin/grml-setservices: Fix a couple of shellcheck warnings

- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- SC2086: Double quote to prevent globbing and word splitting.
- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.

6 months agousr_sbin/grml-setlang: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 16:18:52 +0000 (17:18 +0100)]
usr_sbin/grml-setlang: Fix a couple of shellcheck warnings

- SC2086: Double quote to prevent globbing and word splitting.
- SC2034: CMDLINE appears unused. Verify use (or export if used externally).
- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- Ignore SC1117: Backslash is literal in "\#". Prefer explicit escaping: "\\#".
- Ignore SC1091: Not following: /etc/environment was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/default/locale was not specified as input (see shellcheck -x).
- Ignore SC1010: Use semicolon or linefeed before 'fi' (or quote to make it literal).
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1090: Can't follow non-constant source. Use a directive to specify location.
- SC2086: Double quote to prevent globbing and word splitting.

6 months agousr_sbin/grml-setkeyboard: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 15:55:58 +0000 (16:55 +0100)]
usr_sbin/grml-setkeyboard: Fix a couple of shellcheck warnings

- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/sysconfig/keyboard was not specified as input (see shellcheck -x).
- Ignore SC1010: Use semicolon or linefeed before 'fi' (or quote to make it literal).
- Ignore SC1091: Not following: /etc/grml/language-functions was not specified as input (see shellcheck -x).

6 months agousr_sbin/grml-iptstate: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 15:33:44 +0000 (16:33 +0100)]
usr_sbin/grml-iptstate: Fix a couple of shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- SC2162: read without -r will mangle backslashes.
- SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.

6 months agousr_sbin/grml-hostname: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 15:27:22 +0000 (16:27 +0100)]
usr_sbin/grml-hostname: Fix a couple of shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
- Ignore SC1117: Backslash is literal in "\s". Prefer explicit escaping: "\\s".
- Ignore SC1117: Backslash is literal in "\)". Prefer explicit escaping: "\\)".
- Ignore SC1117: Backslash is literal in "\1". Prefer explicit escaping: "\\1".
- Ignore SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
- Ignore SC1117: Backslash is literal in "\s". Prefer explicit escaping: "\\s".
- Ignore SC1117: Backslash is literal in "\)". Prefer explicit escaping: "\\)".
- Ignore SC1117: Backslash is literal in "\1". Prefer explicit escaping: "\\1".
- SC2046: Quote this to prevent word splitting.

6 months agousr_sbin/grml-config-root: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 15:07:46 +0000 (16:07 +0100)]
usr_sbin/grml-config-root: Fix a couple of shellcheck warnings

- SC2006: Use $(..) instead of legacy `..`.
- SC2230: which is non-standard. Use builtin 'command -v' instead.
- SC2086: Double quote to prevent globbing and word splitting.

6 months agousr_sbin/grml-chroot: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 14:52:36 +0000 (15:52 +0100)]
usr_sbin/grml-chroot: Fix a couple of shellcheck warnings

- SC2086: Double quote to prevent globbing and word splitting.
- SC2145: Argument mixes string and array. Use * or separate argument.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2155: Declare and assign separately to avoid masking return values.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2004: $/${} is unnecessary on arithmetic variables.
- SC2230: which is non-standard. Use builtin 'command -v' instead.
- SC2236: Use -n instead of ! -z.

6 months agousr_sbin/grml2ram: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Mar 2021 14:37:36 +0000 (15:37 +0100)]
usr_sbin/grml2ram: Fix a couple of shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Set interpreter to /bin/bash because of SC2039: In POSIX sh, 'local' is undefined.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2061: Quote the parameter to -name so the shell won't interpret it.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2015: Note that A && B || C is not if-then-else. C may run when A is true.

6 months agousr_sbin/dirvish-setup: Fix some shellcheck warnings
Darshaka Pathirana [Thu, 11 Feb 2021 09:33:25 +0000 (10:33 +0100)]
usr_sbin/dirvish-setup: Fix some shellcheck warnings

- Ignore SC1091: Not following: /etc/grml/script-functions was not specified as input (see shellcheck -x).
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.
- Ignore SC1090: Can't follow non-constant source. Use a directive to specify location.
- SC2046: Quote this to prevent word splitting.
- SC2006: Use $(..) instead of legacy `..`.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
- SC2046: Quote this to prevent word splitting.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.

6 months agousr_sbin/blacklist: Fix couple of shellcheck warnings:
Darshaka Pathirana [Thu, 11 Feb 2021 09:18:27 +0000 (10:18 +0100)]
usr_sbin/blacklist: Fix couple of shellcheck warnings:

- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/grml/lsb-functions was not specified as input (see shellcheck -x).

6 months agousr_bin/soundtest: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Feb 2021 14:15:50 +0000 (15:15 +0100)]
usr_bin/soundtest: Fix a couple of shellcheck warnings

- SC2046: Quote this to prevent word splitting.
- SC2230: which is non-standard. Use builtin 'command -v' instead.

6 months agousr_bin/random-hostname: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 5 Feb 2021 13:56:00 +0000 (14:56 +0100)]
usr_bin/random-hostname: Fix a couple of shellcheck warnings

- Ignore SC2034: hostnames appears unused. Verify use (or export if used externally).

While at it I rewrote the way how the random hostname is retrieved:

First find the line number 3 lines after the line which starts with "# EOF"
This is the line where the list of hostnames start.
This makes the script a bit more robust and avoids the hard coded start
line calculation ("num=$(( $num - 16 ))").

Then list all lines from there by excluding all empty commented out
lines and the last line (which start with "'").
Use "sort -R" to randomly sort the list and from there take the last line.

That way the confusing "randline" variable calculation is avoided.

6 months agousr_bin/iso-term: Fix a couple of shellcheck warnings
Darshaka Pathirana [Sun, 31 Jan 2021 09:03:59 +0000 (10:03 +0100)]
usr_bin/iso-term: Fix a couple of shellcheck warnings

- SC2006: Use $(..) instead of legacy `..`.
- SC2086: Double quote to prevent globbing and word splitting.
- SC2048: Use "$@" (with quotes) to prevent whitespace problems.
- SC2086: Double quote to prevent globbing and word splitting.

While at it also put the execution of x-terminal-emulator out of the
if-then-else clause to avoid duplicate code.

6 months agoMakefile: Do not shellcheck iimage
Darshaka Pathirana [Fri, 4 Dec 2020 11:55:47 +0000 (12:55 +0100)]
Makefile: Do not shellcheck iimage

iimage is not developed by the Grml-Team but causes a lot of shellcheck warnings.

While at it also ignore SC1117 for all scripts because
the check has been retired in shellcheck v0.5+.

6 months agousr_bin/grml-resolution: Fix a couple of shellscript warnings
Darshaka Pathirana [Fri, 4 Dec 2020 11:22:58 +0000 (12:22 +0100)]
usr_bin/grml-resolution: Fix a couple of shellscript warnings

- Ignore SC2086: dialog needs $STRING to be splitted, so that the values
  are listed in the menu
- SC2120: bailout references arguments, but none are ever passed
- Ignore SC2015: Note that A && B || C is not if-then-else.
  C may run when A is true

6 months agousr_bin/grml-lock: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 4 Dec 2020 11:03:40 +0000 (12:03 +0100)]
usr_bin/grml-lock: Fix a couple of shellcheck warnings

- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091
- SC2230: which is non-standard. Use builtin 'command -v' instead
- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?

6 months agousr_bin/grml-lang: Fix a couple of shellcheck warnings
Darshaka Pathirana [Fri, 4 Dec 2020 10:49:12 +0000 (11:49 +0100)]
usr_bin/grml-lang: Fix a couple of shellcheck warnings

- SC2034: PN appears unused. Verify use (or export if used externally).
- SC2086: Double quote to prevent globbing and word splitting.
- Ignore SC1091: Not following: /etc/grml/language-functions was not specified as input (see shellcheck -x).

SC1117 was retired due to noise in koalaman/shellcheck@d8a32da07.

6 months agousr_bin/grml-exec-wrapper: Fix a couple of shellcheck warnings
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.

6 months agoAdd Code testing workflow
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!)

11 months agoRelease new version 2.10.0 v2.10.0
Michael Prokop [Fri, 9 Jul 2021 07:16:28 +0000 (09:16 +0200)]
Release new version 2.10.0

12 months agoMerge remote-tracking branch 'origin/github/pr/12'
Michael Prokop [Fri, 18 Jun 2021 17:15:06 +0000 (19:15 +0200)]
Merge remote-tracking branch 'origin/github/pr/12'

12 months agogrml-chroot: support efivarfs in EFI environments
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

23 months agoRelease new version 2.9.1 v2.9.1
Michael Prokop [Sun, 19 Jul 2020 16:09:38 +0000 (18:09 +0200)]
Release new version 2.9.1

23 months agogrml-lock: drop gdialog usage and don't wrap text in zenity
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.

23 months agogrml-info: drop support for deprecated gdialog and prefer zenity over Xdialog
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.

3 years agoRelease new version 2.9.0 v2.9.0
Michael Prokop [Thu, 21 Mar 2019 11:26:05 +0000 (12:26 +0100)]
Release new version 2.9.0

3 years agogrml2ram: switch default mount point from /lib/live/mount/medium to /run/live/medium
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.

3 years agoRelease new version 2.8.4 v2.8.4
Michael Prokop [Fri, 18 Jan 2019 13:22:28 +0000 (14:22 +0100)]
Release new version 2.8.4

3 years agoFix some further typos
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/

3 years agogrml-setkeyboard + grml-setkeyboard{,.8}: fix typos
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 :)

3 years agoBump Standards-Version to 4.3.0
Michael Prokop [Fri, 18 Jan 2019 13:15:20 +0000 (14:15 +0100)]
Bump Standards-Version to 4.3.0

3 years agogrml-chroot: bind-mount /run/udev in target system as workaround for lvm2 issue ...
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.

3 years agoRelease new version 2.8.3 v2.8.3
Michael Prokop [Sun, 30 Dec 2018 11:17:28 +0000 (12:17 +0100)]
Release new version 2.8.3

3 years agogrml-lang: use /etc/default/keyboard instead of /etc/sysconfig/keyboard
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

3 years agoRelease new version 2.8.2 v2.8.2
Michael Prokop [Fri, 14 Dec 2018 10:38:19 +0000 (11:38 +0100)]
Release new version 2.8.2

3 years agogrml-chroot: iff /proc/cmdline exists don't try to mount again
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

3 years agoRelease new version 2.8.1 v2.8.1
Michael Prokop [Thu, 15 Nov 2018 09:09:28 +0000 (10:09 +0100)]
Release new version 2.8.1

3 years agoDrop deprecated directories /etc/grml + /etc/postfix
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.

3 years agoSwitch Homepage + Vcs-Browser headers from http to https
Michael Prokop [Thu, 15 Nov 2018 09:04:18 +0000 (10:04 +0100)]
Switch Homepage + Vcs-Browser headers from http to https

3 years agoBump Standards-Version to 4.2.1
Michael Prokop [Thu, 15 Nov 2018 09:04:12 +0000 (10:04 +0100)]
Bump Standards-Version to 4.2.1

4 years agogrml-lock: run physlock with `-u` option only if it's supported
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

4 years agoRelease new version 2.8.0 v2.8.0
Michael Prokop [Fri, 1 Jun 2018 15:00:52 +0000 (17:00 +0200)]
Release new version 2.8.0

4 years agoDrop reread_partition_table binary
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.

4 years agoBump debian/compat to 10 and adjust Build-Depends for debhelper to v10
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

4 years agoBump Standards-Version to 4.1.4
Michael Prokop [Fri, 1 Jun 2018 14:57:51 +0000 (16:57 +0200)]
Bump Standards-Version to 4.1.4

4 years agorun_welcome: drop unicode hack
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

5 years agoRelease new version 2.7.3 v2.7.3
Michael Prokop [Fri, 16 Jun 2017 08:05:32 +0000 (10:05 +0200)]
Release new version 2.7.3

5 years agogrml-chroot: mount /dev/pts as devpts inside chroot
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

5 years agoRevert "grml-chroot: mount /dev/pts as devpts inside chroot"
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

5 years agoRelease new version 2.7.2 v2.7.2
Michael Prokop [Wed, 24 May 2017 07:17:20 +0000 (09:17 +0200)]
Release new version 2.7.2

5 years agonotifyd: fix typo in comment
Evgeni Golov [Fri, 16 Oct 2015 15:09:50 +0000 (17:09 +0200)]
notifyd: fix typo in comment

5 years agonotifyd: call aplay using subprocess.Popen + replace os.system with subprocess.call
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

5 years agoRelease new version 2.7.1 v2.7.1
Michael Prokop [Tue, 16 May 2017 13:13:00 +0000 (15:13 +0200)]
Release new version 2.7.1

5 years agogrml-chroot: mount /dev/pts as devpts inside chroot
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

5 years agoRelease new version 2.7.0 v2.7.0
Michael Prokop [Fri, 30 Dec 2016 23:19:32 +0000 (00:19 +0100)]
Release new version 2.7.0

5 years agoBump Standards-Version to 3.9.8
Michael Prokop [Fri, 30 Dec 2016 23:18:59 +0000 (00:18 +0100)]
Bump Standards-Version to 3.9.8

5 years agogrml-hostname: no longer rely on /etc/init.d/hostname.sh
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.

6 years agoRelease new version 2.6.1 v2.6.1
Michael Prokop [Wed, 6 Jan 2016 11:34:53 +0000 (12:34 +0100)]
Release new version 2.6.1

6 years agoAdd script run-journalctl + use /bin/sh for all run-* wrappers
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.

6 years agoRelease new version 2.6.0 v2.6.0
Michael Prokop [Wed, 8 Jul 2015 13:19:18 +0000 (15:19 +0200)]
Release new version 2.6.0

6 years agoRun wrap-and-sort on debian directory
Michael Prokop [Wed, 8 Jul 2015 13:19:01 +0000 (15:19 +0200)]
Run wrap-and-sort on debian directory

6 years agoBump Standards-Version to 3.9.6
Michael Prokop [Wed, 8 Jul 2015 13:18:47 +0000 (15:18 +0200)]
Bump Standards-Version to 3.9.6

6 years agogrml-lock: switch from vlock to physlock [Closes: issue1342]
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.

8 years agoRelease new version 2.5.2 v2.5.2
Michael Prokop [Sat, 19 Apr 2014 13:41:01 +0000 (15:41 +0200)]
Release new version 2.5.2

8 years agogrml-lang: support language settings for Italy
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>

8 years agoRelease new version 2.5.1 v2.5.1
Michael Prokop [Fri, 7 Feb 2014 07:56:27 +0000 (08:56 +0100)]
Release new version 2.5.1

8 years agogrml-lock: fix typo (s/to/do/)
Michael Prokop [Fri, 7 Feb 2014 07:56:07 +0000 (08:56 +0100)]
grml-lock: fix typo (s/to/do/)

8 years agoRelease new version 2.5.0 v2.5.0
Michael Prokop [Wed, 5 Feb 2014 08:36:32 +0000 (09:36 +0100)]
Release new version 2.5.0

8 years agoBump Standards-Version to 3.9.5
Michael Prokop [Wed, 5 Feb 2014 08:36:15 +0000 (09:36 +0100)]
Bump Standards-Version to 3.9.5

8 years agoStatically compile grml-runtty to avoid dependency on unstable's libc
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'

8 years agoRelease new version 2.4.1 v2.4.1
Michael Prokop [Fri, 13 Sep 2013 08:22:36 +0000 (10:22 +0200)]
Release new version 2.4.1

8 years agoRemove the script grml-config and set a symlink to grml-config-root
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>
8 years agoFix: Erase all forgotten stuff from grml-config-user [Closes: issue1272]
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>
8 years agoRelease new version 2.4.0 v2.4.0
Michael Prokop [Wed, 4 Sep 2013 15:14:41 +0000 (17:14 +0200)]
Release new version 2.4.0

8 years agogrml-lang: sort languages alphabetically
Michael Prokop [Tue, 20 Aug 2013 08:53:07 +0000 (10:53 +0200)]
grml-lang: sort languages alphabetically

8 years agoadd: french keymap support to grml-lang
Ziirish [Fri, 19 Apr 2013 10:30:24 +0000 (12:30 +0200)]
add: french keymap support to grml-lang

9 years agoRelease new version 2.3.1 v2.3.1
Michael Prokop [Mon, 14 Jan 2013 13:01:40 +0000 (14:01 +0100)]
Release new version 2.3.1

9 years agogrml2ram: fix usage of LIVECD_PATH variable together with MEDIA_PATH
Michael Prokop [Mon, 14 Jan 2013 13:00:46 +0000 (14:00 +0100)]
grml2ram: fix usage of LIVECD_PATH variable together with MEDIA_PATH

9 years agoRelease new version 2.3.0 v2.3.0
Michael Prokop [Fri, 11 Jan 2013 12:45:19 +0000 (13:45 +0100)]
Release new version 2.3.0

9 years agogrml2ram: adjust live image handling for new live-boot directory
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

9 years agoRelease new version 2.2.2 v2.2.2
Michael Prokop [Mon, 17 Dec 2012 12:05:38 +0000 (13:05 +0100)]
Release new version 2.2.2

9 years agoBump Standards-Version to 3.9.4
Michael Prokop [Mon, 17 Dec 2012 12:05:21 +0000 (13:05 +0100)]
Bump Standards-Version to 3.9.4

9 years agogrml-scripts manpage: no longer mention deprecated align script
Michael Prokop [Tue, 11 Sep 2012 13:12:41 +0000 (15:12 +0200)]
grml-scripts manpage: no longer mention deprecated align script

9 years agoRelease new version 2.2.1 v2.2.1
Michael Prokop [Wed, 5 Sep 2012 10:48:25 +0000 (12:48 +0200)]
Release new version 2.2.1

9 years agoblacklist: fix indention
Michael Prokop [Wed, 5 Sep 2012 09:22:46 +0000 (11:22 +0200)]
blacklist: fix indention

9 years agoblacklist: check for -h/--help option
Michael Prokop [Wed, 5 Sep 2012 09:22:26 +0000 (11:22 +0200)]
blacklist: check for -h/--help option