[Git-commits] [grml/live-boot-grml] b36806: 0020-read-only: iterate over all devices + improve...

Michael Prokop noreply at github.com
Fri Jul 10 09:09:50 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/grml/live-boot-grml
  Commit: b368066d452acfaf624757e84bfdbe0db10b89ae
      https://github.com/grml/live-boot-grml/commit/b368066d452acfaf624757e84bfdbe0db10b89ae
  Author: Michael Prokop <mika at grml.org>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M components/0020-read-only

  Log Message:
  -----------
  0020-read-only: iterate over all devices + improve console message layout

There might be block devices other than /dev/sd* + /dev/vd* (like
/dev/nvme0n*). Instead of hardcoding a static list, let's iterate over
all of them, and then ignore all symlinks (pointing to the actual
devices) and consider only actual block devices.
Also ensure that the device exists (checked via `blockdev --getsz ...`)
before executing `blockdev --setro ...` on it.

Reworked the according console message: using printf with field width
allows us to make this look a bit nicer and better integrate into the
boot sequence look-alike.

JFTR: it would be nice to send output also to `/boot.log` (which ends up
as `/var/log/live/boot.log` on the booted system), but if we do this
then the output is visible twice during startup, as `/boot.live` is sent
to console via `tail -f`. If changing this to only list it via
`/boot.live` it might not be always guaranteed to be visible on screen,
so we didn't change this yet.

This work was funded by Grml-Forensic.


  Commit: ea4f167204b444fc52633a2ed1ded9023c3b01e4
      https://github.com/grml/live-boot-grml/commit/ea4f167204b444fc52633a2ed1ded9023c3b01e4
  Author: Michael Prokop <mika at grml.org>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M components/9990-misc-helpers.sh

  Log Message:
  -----------
  9990-misc-helpers.sh: ensure to appened to boot.log file

boot.log might exist already, don't overwrite it but instead append output


  Commit: 5a0faf898beb015c3a18ad7714f7a8ee37d039de
      https://github.com/grml/live-boot-grml/commit/5a0faf898beb015c3a18ad7714f7a8ee37d039de
  Author: Michael Prokop <mika at grml.org>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M debian/changelog

  Log Message:
  -----------
  Release new version 1:20200527+grml.3


Compare: https://github.com/grml/live-boot-grml/compare/4ab4bd35da42...5a0faf898beb


More information about the Git-commits mailing list