Allow nonempty root directories #20

Closed
opened 2 years ago by branleb · 3 comments

mmdebstrap does not allow for nonempty root directories to bootstap into.
The mentioned rationale is https://bugs.debian.org/833525.
But there should be at least a possibility to override this behaviour by a command line switch or something alike.

One use case for a nonempty root directory would be a setup splitted over multiple disks/partitions.
This can be the case when setting up e.g. a VM with a root partition and a separate /usr and or /var partition.
But such a setup is impossible to accomodate with the current code.
Such a setup has to be fixed afterwards instead of the possibility to set it up correctly from the beginning.

To prevent scenarios like the one in first post, a command line switch like "--allow-nonempty-rootdir" or something alike would be enough.

mmdebstrap does not allow for nonempty root directories to bootstap into. The mentioned rationale is https://bugs.debian.org/833525. But there should be at least a possibility to override this behaviour by a command line switch or something alike. One use case for a nonempty root directory would be a setup splitted over multiple disks/partitions. This can be the case when setting up e.g. a VM with a root partition and a separate /usr and or /var partition. But such a setup is impossible to accomodate with the current code. Such a setup has to be fixed afterwards instead of the possibility to set it up correctly from the beginning. To prevent scenarios like the one in first post, a command line switch like "--allow-nonempty-rootdir" or something alike would be enough.
josch commented 2 years ago
Owner

Does running mmdebstrap with --skip=check/empty fix this for you?

Does running mmdebstrap with `--skip=check/empty` fix this for you?
Poster

Does running mmdebstrap with --skip=check/empty fix this for you?

Yes, indeed. The introduction of this flag is everything I needed. Apparently I didn't catch that at first.

> Does running mmdebstrap with `--skip=check/empty` fix this for you? Yes, indeed. The introduction of this flag is everything I needed. Apparently I didn't catch that at first.
josch commented 2 years ago
Owner

If you think that the issue is resolved, please close it.

If you think that the issue is resolved, please close it.
branleb closed this issue 2 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#20
Loading…
There is no content yet.