Skip to content

Commit 224f96d

Browse files
authored
Revert "microvm-init: mount defaultshare read-only, do not chmod moutpoint" (wolfi-dev#71153)
This reverts commit bb8213b. This causes breakage when builds or tests happen as non root. Ref: chainguard-dev/melange#2155
1 parent d1911aa commit 224f96d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

microvm-init.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: microvm-init
33
version: 0.0.1
4-
epoch: 13
4+
epoch: 14
55
description: Minimal busybox init for microvm workloads
66
copyright:
77
- license: Apache-2.0
@@ -14,7 +14,6 @@ package:
1414
- kmod
1515
- mount
1616
- openssh-server
17-
- umount
1817
- util-linux-misc
1918
- xfsprogs
2019

microvm-init/init

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ mount -t 9p \
9393
-o security_model=mapped-xattr \
9494
-o posixacl=on \
9595
-o msize=104857600 \
96-
-o ro \
9796
defaultshare /mount/mnt/
9897

98+
# Allow the user we are running as to copy things to the shared dir
99+
chmod 0777 /mount/mnt
100+
99101
mount --rbind /dev /mount/dev
100102
mount --rbind /proc /mount/proc
101103
mount --rbind /sys /mount/sys

0 commit comments

Comments
 (0)