HowtoBind: add steps for Debian 12

This commit is contained in:
David Prevot 2023-11-13 11:57:10 +01:00
parent 9178624b79
commit dee9c0ed76

View file

@ -203,6 +203,30 @@ RESOLVCONF=no
OPTIONS=" -u bind -t /var/chroot-bind"
~~~
### bind mount à partir de Bookworm (Debian 12)
Depuis Bookworm, des points de montage sont nécessaires pour un fonctionnement normal de systemd et journald (sinon lunité systemd ne renvoie jamais de signal après un redémarrage correct).
`/etc/fstab` doit contenir les lignes suivantes.
~~~
/run/systemd/journal/socket /var/chroot-bind/run/systemd/journal/socket none bind 0 0
/run/systemd/journal/stdout /var/chroot-bind/run/systemd/journal/stdout none bind 0 0
/run/systemd/notify /var/chroot-bind/run/systemd/notify none bind 0 0
~~~
Puis les points de montages doivent être créés et montés.
~~~ { .sh }
# mkdir -p /var/chroot-bind/run/systemd/journal
# touch /var/chroot-bind/run/systemd/{journal/s{ocket,tdout},notify}
# chown -R bind: /var/chroot-bind/run/
# systemctl daemon-reload
# mount -a
~~~
### Relancer bind
Vous devez alors relancer BIND :
~~~