- In `<dvm-template>` create a new directory, `/rw/config/Session`, and move the above two files to this location, where they will persist.
- Add the following lines to the `rc.local` script. This will ensure that each disposable Session instance spawned by `<dvm-template>` is configured with the above SessionID from the get go.
| - In `<dvm-template>` use `bind-dirs` to [make the above two files persist](https://qubes-os.org/doc/bind-dirs/#how-to-use-bind-dirssh).
- The following instructions will ensure that each disposable Session instance spawned by `<dvm-template>` is configured with the above SessionID from the get go.
|
[root@<dvm-template> ~]$ mkdir /rw/config/Session
[root@<dvm-template> ~]$ mv /home/user/QubesIncoming/disp<#>/* /rw/config/Session/
[root@<dvm-template> ~]$ echo -e "mkdir -p /home/user/.config/Session/sql/\ncp /rw/config/Session/config.json /home/user/.config/Session/\ncp /rw/config/Session/db.sqlite /home/user/.config/Session/sql/\nsudo chown -R user /home/user/.config/Session" >> /rw/config/rc.local
| [root@<dvm-template> ~]$ mkdir -p /rw/config/qubes-bind-dirs.d
[root@<dvm-template> ~]$ touch /rw/config/qubes-bind-dirs.d/50_user.conf
[root@<dvm-template> ~]$ echo "binds+=( '/home/user/.config/Session/sql' )" >> /rw/config/qubes-bind-dirs.d/50_user.conf
[root@<dvm-template> ~]$ echo "binds+=( '/home/user/.config/Session' )" >> /rw/config/qubes-bind-dirs.d/50_user.conf
[root@<dvm-template> ~]$ mkdir -p /rw/bind-dirs/home/user/.config/Session/sql
[root@<dvm-template> ~]$ mv /home/user/QubesIncoming/disp<#>/config.json /rw/bind-dirs/home/user/.config/Session/
[root@<dvm-template> ~]$ mv /home/user/QubesIncoming/disp<#>/db.sqlite /rw/bind-dirs/home/user/.config/Session/sql/
[root@<dvm-template> ~]$ echo "chown -R user /home/user/.config/Session" >> /rw/config/rc.local
|
[details="A quick check"]
` [root@<dvm-template> ~]$ cat /rw/config/rc.local`
should include the following lines:
> mkdir -p /home/user/.config/Session/sql/
> cp /rw/config/Session/config.json /home/user/.config/Session/
> cp /rw/config/Session/db.sqlite /home/user/.config/Session/sql/
> sudo chown -R user /home/user/.config/Session
[/details]
|
|