[gnome-build-meta/abderrahim/toolbox: 29/29] project.conf: add a toolbox-like mode for `bst shell`
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/toolbox: 29/29] project.conf: add a toolbox-like mode for `bst shell`
- Date: Tue, 7 Apr 2020 07:50:30 +0000 (UTC)
commit 346f8f1c9aad4050633d209aadd369066422e1bb
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Sat Mar 28 15:55:20 2020 +0100
project.conf: add a toolbox-like mode for `bst shell`
project.conf | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
---
diff --git a/project.conf b/project.conf
index 7479ef91..63a051dc 100644
--- a/project.conf
+++ b/project.conf
@@ -31,6 +31,10 @@ options:
- aarch64
- i686
- x86_64
+ toolbox:
+ type: bool
+ default: false
+ description: mount host resources similar to toolbox
# Source aliases.
@@ -203,6 +207,70 @@ shell:
# other things.
- '${XDG_RUNTIME_DIR}'
+ (?):
+ - toolbox:
+ environment:
+ COLORTERM: $COLORTERM
+ COLUMNS: $COLUMNS
+ DBUS_SESSION_BUS_ADDRESS: $DBUS_SESSION_BUS_ADDRESS
+ DBUS_SYSTEM_BUS_ADDRESS: $DBUS_SYSTEM_BUS_ADDRESS
+ DESKTOP_SESSION: $DESKTOP_SESSION
+ DISPLAY: $DISPLAY
+ HOME: $HOME
+ LANG: $LANG
+ LINES: $LINES
+ SHELL: $SHELL
+ SSH_AUTH_SOCK: $SSH_AUTH_SOCK
+ TERM: $TERM
+ VTE_VERSION: $VTE_VERSION
+ WAYLAND_DISPLAY: $WAYLAND_DISPLAY
+ XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP
+ XDG_DATA_DIRS: $XDG_DATA_DIRS
+ XDG_MENU_PREFIX: $XDG_MENU_PREFIX
+ XDG_RUNTIME_DIR: $XDG_RUNTIME_DIR
+ XDG_SEAT: $XDG_SEAT
+ XDG_SESSION_DESKTOP: $XDG_SESSION_DESKTOP
+ XDG_SESSION_ID: $XDG_SESSION_ID
+ XDG_SESSION_TYPE: $XDG_SESSION_TYPE
+ XDG_VTNR: $XDG_VTNR
+
+ host-files:
+ # Understand user inherited uid/gid
+ - '/etc/passwd'
+ - '/etc/group'
+ # Allow network resolution
+ - '/etc/resolv.conf'
+ # Allow access to sysfs, needed for local device discovery
+ - '/sys'
+
+ - '/dev'
+ - '$HOME'
+ - /var/run/dbus/system_bus_socket
+ - '$XDG_RUNTIME_DIR'
+
+ - path: /media
+ optional: true
+ - path: /run/media
+ optional: true
+ - path: /mnt
+ optional: true
+
+ # The following have been copied from toolbox, but I'm not sure how useful
+ # they are without the symlinks that toolbox puts at startup, but whatever
+ - host_path: '$XDG_RUNTIME_DIR/.flatpak-helper/monitor'
+ path: /run/host/monitor
+ optional: true
+ - host_path: /etc
+ path: /run/host/etc
+ - host_path: /run
+ path: /run/host/run
+ - host_path: /tmp
+ path: /run/host/tmp
+ - host_path: /usr
+ path: /run/host/usr
+ - host_path: /var
+ path: /run/host/var
+
variables:
branch: master
ostree-branch: "gnome-os/%{arch}/%{branch}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]