Allow nonempty root directories #20

Closed
opened 2021-12-24 14:27:57 +00:00 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.
Owner

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

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

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.
Owner

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

If you think that the issue is resolved, please close it.
Sign in to join this conversation.
No labels
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
No description provided.