Merge ~mitchellaugustin/curtin/+git/curtin-1:missing-ischroot-mitigation into curtin:master
Proposed by
Mitchell Augustin
Status: | Merged |
---|---|
Approved by: | Dan Bungert |
Approved revision: | 935c59ff250d1b61d4e092f2fc0c06bcfd9ad991 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~mitchellaugustin/curtin/+git/curtin-1:missing-ischroot-mitigation |
Merge into: | curtin:master |
Diff against target: |
82 lines (+52/-2) 2 files modified
curtin/util.py (+4/-2) tests/unittests/test_util.py (+48/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dan Bungert | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+461730@code.launchpad.net |
Commit message
Check to ensure ischroot exists before ChrootableTarget bind mount
Some systems (such as centos7) do not include /usr/bin/ischroot,
which will cause the bind mount to it in ChrootableTarget to fail.
Adding a check for this ensures that the file exists before
mounting and aborts the mount if it does not.
Description of the change
Check to ensure ischroot exists before ChrootableTarget bind mount
To post a comment you must log in.
Thanks, I think this is correct.
Do you mind adding a unittest case for that?