pmbootstrap/pmb/chroot
Oliver Smith 4e665a2190
Recreate device nodes in chroot after shutdown (#1447)
Device nodes in the chroots get created in a tmpfs, so they can be
created even if the filesystem where the chroot resides does not
support device nodes (#1317). In "pmbootstrap shutdown" we umount the
`dev` folder, which means all device nodes that were created inside
this folder are gone. This commit changes the code to actually recreate
the device nodes when using the chroot again.

Details:
* move `pmb.chroot.init.create_device_nodes` to
  `pmb.chroot.mount.crete_device_nodes`
* don't call it in `pmb.chroot.init()` anymore, but in
  `pmb.chroot.mount_dev_tmpfs()`
* Create the `null` device as well (`apk --initdb` also creates it on
  `init`, but we don't call it after `shutdown`)
2018-04-29 22:17:57 +00:00
..
__init__.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
apk.py convert dict.keys() to list() (#1290) 2018-03-04 21:10:27 +01:00
apk_static.py aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
binfmt.py Add a check for binfmt_misc (#1236) 2018-02-17 20:41:54 +00:00
distccd.py Properly escape commands in pmb.chroot.user() (#1316) 2018-03-10 22:58:39 +00:00
init.py Recreate device nodes in chroot after shutdown (#1447) 2018-04-29 22:17:57 +00:00
initfs.py pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363) 2018-04-03 23:50:09 +00:00
initfs_hooks.py initfs hook_ls: make clear what's not installed (#1409) 2018-04-11 22:26:48 +00:00
mount.py Recreate device nodes in chroot after shutdown (#1447) 2018-04-29 22:17:57 +00:00
other.py pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363) 2018-04-03 23:50:09 +00:00
root.py Properly escape commands in pmb.chroot.user() (#1316) 2018-03-10 22:58:39 +00:00
shutdown.py Fix pmbootstrap zap -m / various zap improvements (#1166) 2018-01-31 19:34:02 +00:00
user.py Properly escape commands in pmb.chroot.user() (#1316) 2018-03-10 22:58:39 +00:00
zap.py pmbootstrap zap -m: delete outdated packages too (#1306) 2018-03-10 12:08:02 +00:00