[gnome-build-meta/valentindavid/varhome] Do not use /home but /var/home



commit dfd1c2ccc6705f9e358d5367dd92b69e525f7e65
Author: Valentin David <valentin david codethink co uk>
Date:   Mon Apr 27 15:44:03 2020 +0000

    Do not use /home but /var/home
    
    Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.
    
    https://github.com/ostreedev/ostree/issues/2086

 elements/vm/ostree-config.bst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/elements/vm/ostree-config.bst b/elements/vm/ostree-config.bst
index 33994bb0..dbeefe99 100644
--- a/elements/vm/ostree-config.bst
+++ b/elements/vm/ostree-config.bst
@@ -13,6 +13,7 @@ build-depends:
 runtime-depends:
 - freedesktop-sdk.bst:components/systemd.bst
 - core-deps/libostree.bst
+- freedesktop-sdk.bst:components/shadow.bst
 
 config:
   build-commands:
@@ -36,7 +37,6 @@ config:
   - |
     mkdir -p "%{install-root}/sysroot"
     ln -s sysroot/ostree "%{install-root}/ostree"
-    ln -s var/home "%{install-root}/home"
     ln -s var/roothome "%{install-root}/root"
     ln -s run/media "%{install-root}/media"
 
@@ -44,3 +44,8 @@ config:
     install -Dm644 -t "%{install-root}/usr/lib/tmpfiles.d" ostree.conf
     install -Dm644 *.gpg "%{install-root}/etc/pki/ostree/gnome.gpg"
     install -Dm644 -t "%{install-root}/etc/ostree/remotes.d" gnome.conf
+
+public:
+  bst:
+    integration-commands:
+    - sed -i 's,HOME=/home,HOME=/var/home,' /etc/default/useradd


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