Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Commit 0999b88

Browse files
giusepperh-atomic-bot
authored andcommitted
mount: drop prefixes from the ostree image
Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: #1127 Approved by: ashcrow
1 parent 0bffaf6 commit 0999b88

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Atomic/mount.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ def mount(self, identifier, options=None): # pylint: disable=arguments-differ
827827
if not OSTREE_PRESENT:
828828
return False
829829

830+
identifier = util.remove_skopeo_prefixes(identifier)
831+
830832
options = ['remount', 'ro', 'nosuid', 'nodev']
831833
has_container = self.has_container(identifier)
832834
has_image = self.has_image(identifier)

tests/integration/test_system_containers_mount.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ OUTPUT=$(! ${ATOMIC} mount --live ${NAME} ${WORK_DIR}/mount 2>&1)
6565
grep "do not support --live" <<< $OUTPUT
6666

6767

68-
# 4. Check that --shared works
69-
${ATOMIC} mount --shared ${NAME} ${WORK_DIR}/mount
68+
# 4. Check that --shared works and that 'http:' is dropped
69+
${ATOMIC} mount --shared http:${NAME} ${WORK_DIR}/mount
7070
test -e ${WORK_DIR}/mount/usr/bin/greet.sh
7171
${ATOMIC} umount ${WORK_DIR}/mount

0 commit comments

Comments
 (0)