Customized rc.local from template

37 views
Skip to first unread message

19hundreds

unread,
Feb 2, 2019, 12:56:41 PM2/2/19
to qubes-users ML
I would like to distribute a customize rc.local to all the AppVM generated from a template.

Inside the template where can I find the rc.local file that will be distributed to the AppVM?

I suppose it's contained in an image file but I have no clue where to look for it

--
1900

awokd

unread,
Feb 2, 2019, 1:22:53 PM2/2/19
to qubes...@googlegroups.com
19hundreds wrote on 2/2/19 5:56 PM:
> I would like to distribute a customize rc.local to all the AppVM generated from a template.
>
> Inside the template where can I find the rc.local file that will be distributed to the AppVM?

I might be missing something, but if you create one in /etc, it should
get inherited by all AppVMs based on that template. See
https://www.qubes-os.org/doc/templates/#important-notes-r40.

Also see https://www.qubes-os.org/doc/config-files/, but that's if you
want to set up separate `rc.local`s by AppVM.

19hundreds

unread,
Feb 2, 2019, 1:38:21 PM2/2/19
to awokd, qubes-users ML

Feb 2, 2019, 6:21 PM by qubes...@googlegroups.com:
I might be missing something, but if you create one in /etc, it should get inherited by all AppVMs based on that template. See https://www.qubes-os.org/doc/templates/#important-notes-r40.
hmm wait, I don't see how /etc/rc.local maps on /rw/config/rc.local in AppVMs

Am I being stupider than usual?

Also see https://www.qubes-os.org/doc/config-files, but that's if you want to set up separate `rc.local`s by AppVM.
Thanks for this link. It doesn't help me in this specific case but I had forgotten of bind-dirs

awokd

unread,
Feb 2, 2019, 2:43:44 PM2/2/19
to qubes...@googlegroups.com
19hundreds wrote on 2/2/19 6:38 PM:
>
> Feb 2, 2019, 6:21 PM by qubes...@googlegroups.com:
>
>> I might be missing something, but if you create one in /etc, it should get inherited by all AppVMs based on that template. See > https://www.qubes-os.org/doc/templates/#important-notes-r40 <https://www.qubes-os.org/doc/templates/#important-notes-r40>> .
>>
> hmm wait, I don't see how /etc/rc.local maps on /rw/config/rc.local in AppVMs
>
> Am I being stupider than usual?

It doesn't map, but you can have multiple scripts, right? Make a
template one in /etc (call it /etc/rc.templatelocal maybe) like you
would in any regular Linux, and customize the separate one as needed per
AppVM. You're taking advantage of AppVMs inheriting almost everything
from their template.
Reply all
Reply to author
Forward
0 new messages