Skip to content

Commit

Permalink
Do not use /home but /var/home
Browse files Browse the repository at this point in the history
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
  • Loading branch information
valentindavid authored and Javier Jardón Cabezas committed May 10, 2020
1 parent d933738 commit 87b8873
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion elements/vm/ostree-config.bst
Expand Up @@ -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:
Expand All @@ -36,11 +37,15 @@ 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"

- |
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

0 comments on commit 87b8873

Please sign in to comment.