summaryrefslogtreecommitdiff
path: root/doc/todo/property_to_install_propellor/comment_1_b05e9a44e5c7130d9cc928223cd82d78._comment
blob: 5a826feab1ce6d012f2596eb5d6e6ea23ecd4a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2017-04-09T17:42:10Z"
 content="""
Making this work when propellor is setting up a chroot is difficult,
because the localdir is bind mounted into the chroot.

Hmm, `unshare` could be helpful. Run shell commands to clone the localdir
inside `unshare -m`, prefixed with a `umount localdir`. This way, the bind
mount is avoided, and it writes "under" it. Limits the commands that can be
run to set up the localdir to shell commands, but bootstrap already
operates on terms of shell commands so that seems ok.

`unshare` is linux-specific; comes in util-linux on modern linuxes.
"""]]