Launch systemd-tmpfiles once in read-only file-system
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Background
I'm setting up a Linux environment (Raspbian Stretch for RPi) writing a script that customize everything I need. Some commands are issued using systemd-nspawn
.
The file-system is mount in read-only and when it runs on the target the systemd-tmpfiles-setup.service
fails because it hasn't configured yet and of course it cannot create anything on the fs.
Question
How to properly setup up this service in such a scenario?
Some ideas
- execute
systemd-nspawn -b
on the host system in order to launch the service once and shutdown (could be done via script?) - leave the system rw for the first boot, than execute a script that automatically setups the file-system in ro and reboots
I would prefer the first way (or a similar one) because I would like to end the deployment with the definitive SD-card image.
systemd raspberry-pi raspbian systemd-nspawn
add a comment |Â
up vote
0
down vote
favorite
Background
I'm setting up a Linux environment (Raspbian Stretch for RPi) writing a script that customize everything I need. Some commands are issued using systemd-nspawn
.
The file-system is mount in read-only and when it runs on the target the systemd-tmpfiles-setup.service
fails because it hasn't configured yet and of course it cannot create anything on the fs.
Question
How to properly setup up this service in such a scenario?
Some ideas
- execute
systemd-nspawn -b
on the host system in order to launch the service once and shutdown (could be done via script?) - leave the system rw for the first boot, than execute a script that automatically setups the file-system in ro and reboots
I would prefer the first way (or a similar one) because I would like to end the deployment with the definitive SD-card image.
systemd raspberry-pi raspbian systemd-nspawn
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Background
I'm setting up a Linux environment (Raspbian Stretch for RPi) writing a script that customize everything I need. Some commands are issued using systemd-nspawn
.
The file-system is mount in read-only and when it runs on the target the systemd-tmpfiles-setup.service
fails because it hasn't configured yet and of course it cannot create anything on the fs.
Question
How to properly setup up this service in such a scenario?
Some ideas
- execute
systemd-nspawn -b
on the host system in order to launch the service once and shutdown (could be done via script?) - leave the system rw for the first boot, than execute a script that automatically setups the file-system in ro and reboots
I would prefer the first way (or a similar one) because I would like to end the deployment with the definitive SD-card image.
systemd raspberry-pi raspbian systemd-nspawn
Background
I'm setting up a Linux environment (Raspbian Stretch for RPi) writing a script that customize everything I need. Some commands are issued using systemd-nspawn
.
The file-system is mount in read-only and when it runs on the target the systemd-tmpfiles-setup.service
fails because it hasn't configured yet and of course it cannot create anything on the fs.
Question
How to properly setup up this service in such a scenario?
Some ideas
- execute
systemd-nspawn -b
on the host system in order to launch the service once and shutdown (could be done via script?) - leave the system rw for the first boot, than execute a script that automatically setups the file-system in ro and reboots
I would prefer the first way (or a similar one) because I would like to end the deployment with the definitive SD-card image.
systemd raspberry-pi raspbian systemd-nspawn
systemd raspberry-pi raspbian systemd-nspawn
asked Sep 25 '17 at 12:52
Mark
1339
1339
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394316%2flaunch-systemd-tmpfiles-once-in-read-only-file-system%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password