[gnome-build-meta/tpollard/raspi4] Touch empty machine-id, see poky @7e5124a44c8d5



commit 9f2e8fd76667294baa91686567b895451807b1d5
Author: Tom Pollard <tom pollard codethink co uk>
Date:   Mon May 18 13:58:38 2020 +0100

    Touch empty machine-id, see poky @7e5124a44c8d5

 elements/freedesktop-sdk.bst                       |  2 ++
 ...ne-id-allows-systemd-to-generate-commit-o.patch | 25 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)
---
diff --git a/elements/freedesktop-sdk.bst b/elements/freedesktop-sdk.bst
index 3a060277..189cb9d5 100644
--- a/elements/freedesktop-sdk.bst
+++ b/elements/freedesktop-sdk.bst
@@ -3,6 +3,8 @@ sources:
 - kind: git_tag
   url: https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
   track: master
+- kind: patch
+  path: patches/0001-Touch-machine-id-allows-systemd-to-generate-commit-o.patch
 config:
   options:
     target_arch: '%{arch}'
diff --git a/patches/0001-Touch-machine-id-allows-systemd-to-generate-commit-o.patch 
b/patches/0001-Touch-machine-id-allows-systemd-to-generate-commit-o.patch
new file mode 100644
index 00000000..7cd4acd2
--- /dev/null
+++ b/patches/0001-Touch-machine-id-allows-systemd-to-generate-commit-o.patch
@@ -0,0 +1,25 @@
+From 201e856dd636a688d61475ca0398921874623818 Mon Sep 17 00:00:00 2001
+From: Tom Pollard <tom pollard codethink co uk>
+Date: Mon, 18 May 2020 13:55:39 +0100
+Subject: [PATCH] Touch machine-id, allows systemd to generate & commit on boot
+
+---
+ files/vm/prepare-image.sh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/files/vm/prepare-image.sh b/files/vm/prepare-image.sh
+index a91344bc..76fb3946 100755
+--- a/files/vm/prepare-image.sh
++++ b/files/vm/prepare-image.sh
+@@ -94,6 +94,8 @@ systemctl --root "${sysroot}" preset-all
+ echo "Running systemctl preset-all for all users" 1>&2
+ systemctl --root "${sysroot}" --global preset-all
+ 
++touch "${sysroot}/etc/machine-id"
++
+ echo "Fix rights for /etc/shadow" 1>&2
+ touch "${sysroot}/etc/shadow"
+ chmod 0400 "${sysroot}/etc/shadow"
+-- 
+2.25.1
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]