Package rpm-build-vm-run: Scripts

Post install

# Required in case of --udevd option to vm-run
mkdir -p /run/udev
chmod a+twx /run/udev

# Just in case
mkdir -p /run/dbus
chmod a+twx /run/dbus

# u&mount should to be readable to use inside vm
control mount unprivileged

# For --overlay=
chmod a+twx /mnt

# Allow user creation (for openssh)
chmod a+r /etc/login.defs

# Workaround to KVM not working on armh: signal to scripts that we don't have
# kvm. This will work on normal build, but will be cleared on hsh-shell, that
# will not produce failure though, just more warnings from qemu.
chmod go-rwx /dev/kvm
Pre install

1
2
3
4
5
# Only allow to install inside of hasher.
[ -d /.host -a -d /.in -a -d /.out ] || {
        echo >&2 'rpm-build-vm-run is not allowed outside hasher environments'
        exit 1
}