Skip to content
Snippets Groups Projects
  1. May 03, 2021
    • Denis Pynkin's avatar
      kernel-install: allow to create $BOOT/$MACHINE_ID · 0b7b2a3a
      Denis Pynkin authored
      Commit [cf73f650890](https://github.com/systemd/systemd/commit/cf73f650890
      
      )
      provides script `00-entry-directory.install` which creates the entry
      directory only if `$BOOT/$MACHINE_ID` folder exists.
      This part was moved out of `kernel-install` script and may introduce
      the problem during upgrade since before Apertis v2022dev2 we do kernel
      install with `$MACHINE_ID` generated in a build time. Later we remove
      `/etc/machine-id` file allowing to generate an unique machine ID during
      first boot, so there will be no directory `$BOOT/$MACHINE_ID` with a new
      ID preventing from new entry generation during kernel upgrade in runtime.
      Hence remove the part checking the `$BOOT/$MACHINE_ID` existence and
      allow to create the proper entry in any case, returning the previous
      `kernel-install` behaviour.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      0b7b2a3a
    • Denis Pynkin's avatar
      Fix bashisms in kernel-install scripts · 3740a22f
      Denis Pynkin authored
      
      Remove negotiation from `-z` to test for non-emptiness instead of
      previously added version reversing those tests logic.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      3740a22f
  2. Apr 26, 2021
  3. Mar 16, 2021
  4. Mar 12, 2021
    • Denis Pynkin's avatar
      Add /usr to non-unmountable list · 09dc211b
      Denis Pynkin authored
      
      Debian's systemd has split-usr enabled as both Debian and in principle Apertis
      support both a split and a merged-usr setup. This mostly adds search paths to
      system (e.g. to look at both `/bin/` and `/usr/bin`) however it also means that
      if `/usr` is a mountpoint system will try to unmount it.  Unfortunately this causes
      issues at shutdown for systems with a merged-usr layout as basic libraries (e.g. libc)
      are located in `/usr` making it impossible to unmount.
      
      For Apertis we don't support `/usr` being a seperate partition, the only time
      `/usr` is on a mountpoint is when using ostree images (where it is a bind mount
      and which use a merged-usr layout). So also add `/usr` to the list of paths that
      are considered unmountable even with split-usr support enabled in systemd.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      09dc211b
  5. Mar 09, 2021
  6. Nov 17, 2020
    • Denis Pynkin's avatar
      Force the call of systemd-journal-flush before `/var` unmount · 2ce89c63
      Denis Pynkin authored
      The problem with failed `/var` unmount placed on separate partition
      have a long story: https://github.com/systemd/systemd/issues/867
      According messages after the fix integrated into upstream -- there are
      some corner cases which aren't fully fixed by patches adding [relinquish
      options](pkg/systemd!26
      
      )
      
      In case of ostree-based images we have a similar issue since `/var` is
      bind-mounted in initramfs. Systemd is trying to unmount `/var` on
      shutdown, however `ExecStop=` command from `systemd-journal-flush`
      service is not executed during shutdown.
      By adding `PartOf=var.mount` into service file we force the
      `systemd-journal-flush.service` to be called prior the `/var` unmount.
      This allow to unlock the bind-mount, since `journald` have a chance to
      re-link it's journal into `/run` with `journalctl
      --smart-relinquish-var` call.
      
      Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
      2ce89c63
  7. Nov 01, 2020
  8. Sep 03, 2020
  9. Aug 15, 2019
  10. Aug 12, 2019
  11. Aug 08, 2019
  12. Jun 01, 2019
Loading