Skip to content
Snippets Groups Projects

Add example recipes to build a single image

Merged Frederic Danis requested to merge fdanis/apertis-image-recipes:T5675 into apertis/v2019dev0
1 unresolved thread
4 files
+ 48
4
Compare changes
  • Side-by-side
  • Inline
Files
4
  • Even after fixing https://github.com/systemd/systemd/issues/11925
    
     we
    would still have issues by truncating the /etc/machine-id earlies, as
    the actual problem is that the systemd-boot tools rely on it being set
    for dual-boot scenarios:
    * to avoid conflicts when creating entries, see the `90-loaderentry` kernel
      install trigger
    * to set the entries for the currently booted installation as default in
      the loader.conf generated by `bootctl install`
    
    In our image this is not useful, as the actual machine-id is supposed to be
    uniquely generated on the first boot. However the impact is negligible, as
    things still work albeit the code used to potentially disambiguate entries
    doesn't match a real machine-id.
    
    Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
+ 12
1
@@ -124,7 +124,18 @@ actions:
description: "Drop resolv.conf so the appropriate one gets created at runtime"
command: rm "${ROOTDIR}/etc/resolv.conf"
# can't be done before due to https://github.com/systemd/systemd/issues/11925
# the clearing of machine-id can't be done before this point since
# systemd-boot requires the machine-id to be set for reasons related to
# dual-boot scenarios:
# * to avoid conflicts when creating entries, see the `90-loaderentry` kernel
# install trigger
# * to set the entries for the currently booted installation as default in
# the loader.conf generated by `bootctl install`
#
# in our image this is not useful, as the actual machine-id is supposed to be
# uniquely generated on the first boot. however the impact is negligible, as
# things still work albeit the code used to potentially disambiguate entries
# doesn't match a real machine-id
- action: run
chroot: false
description: "Empty /etc/machine-id so it's regenerated on first boot with an unique value"
Loading