File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ cp ${BIN}/vic-init $(rootfs_dir $PKGDIR)/sbin/vic-init
127127cp ${BIN} /{docker-engine-server,port-layer-server,vicadmin} $( rootfs_dir $PKGDIR ) /sbin/
128128cp ${BIN} /unpack $( rootfs_dir $PKGDIR ) /bin/
129129
130+ # give port-layer-server privilege to mount image disks
131+ chroot $( rootfs_dir $PKGDIR ) setcap cap_sys_admin=+ep /sbin/port-layer-server
132+
130133# Generate the ISO
131134# Select systemd for our init process
132135generate_iso $PKGDIR $BIN /appliance.iso /lib/systemd/systemd
Original file line number Diff line number Diff line change @@ -673,6 +673,8 @@ func (d *Dispatcher) createAppliance(conf *config.VirtualContainerHostConfigSpec
673673 )
674674
675675 cfg := & executor.SessionConfig {
676+ User : "vicadmin" ,
677+ Group : "vicadmin" ,
676678 Cmd : executor.Cmd {
677679 Path : "/sbin/port-layer-server" ,
678680 Args : []string {
You can’t perform that action at this time.
0 commit comments