Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure udbsync clients for nfsroot to write in nfsroot_staging instead of nfsroot_ro #169

Closed
audebert opened this issue Jun 8, 2019 · 3 comments

Comments

@audebert
Copy link
Contributor

audebert commented Jun 8, 2019

No description provided.

@zopieux
Copy link
Member

zopieux commented Mar 12, 2020

Is this just a matter of changing https://github.com/prologin/sadm/blob/master/etc/systemd/system/udbsync_passwd_nfsroot.service or am I getting this wrong?

@audebert
Copy link
Contributor Author

That, and we also need a new process to automatically sync _stanging to _ro after a change is applied. Currently the change is applied directly to the prod image so that problem does not exist.

zopieux added a commit that referenced this issue Mar 15, 2020
Fixes #169.

Tested:

$ machinectl shell myrhfs0
$ diff -u /export/nfsroot_{staging,ro}/etc/group
  ( empty )

$ systemd-nspawn -D /export/nfsroot_staging
  $ pacman -S minidlna
  ...
  Creating user minidlna (minidlna server) with uid 971 and gid 971.

$ diff -u /export/nfsroot_{staging,ro}/etc/group
--- /export/nfsroot_staging/etc/group   2020-03-15 21:36:38.539844642 +0100
+++ /export/nfsroot_ro/etc/group        2020-03-15 21:34:10.167058855 +0100
@@ -76,2 +76,1 @@
-minidlna:x:971:

$ systemctl restart udbsync_passwd_nfsroot

$ diff -u /export/nfsroot_{staging,ro}/etc/group
  ( empty )
zopieux added a commit that referenced this issue Mar 15, 2020
Fixes #169.

Tested:

$ machinectl shell myrhfs0
$ diff -u /export/nfsroot_{staging,ro}/etc/group
  ( empty )

$ systemd-nspawn -D /export/nfsroot_staging
  $ pacman -S minidlna
  ...
  Creating user minidlna (minidlna server) with uid 971 and gid 971.

$ diff -u /export/nfsroot_{staging,ro}/etc/group
--- /export/nfsroot_staging/etc/group   2020-03-15 21:36:38.539844642 +0100
+++ /export/nfsroot_ro/etc/group        2020-03-15 21:34:10.167058855 +0100
@@ -76,2 +76,1 @@
-minidlna:x:971:

$ systemctl restart udbsync_passwd_nfsroot

$ diff -u /export/nfsroot_{staging,ro}/etc/group
  ( empty )
@seirl
Copy link
Member

seirl commented Aug 13, 2020

We no longer split between _staging and _root with the container/mount namespace setup.

@seirl seirl closed this as completed Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants