X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=mockboot;fp=mockboot;h=0000000000000000000000000000000000000000;hp=830427d4f652f7d067d0b93fe8d9859505b4826c;hb=0732783d35a1dd9474fae2b6881f2cfcb31fa76b;hpb=92c4b53c476446e2e7475d70d54a8590bc0e6298 diff --git a/mockboot b/mockboot deleted file mode 100755 index 830427d..0000000 --- a/mockboot +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# initialize a mock tree (if not already) and nspawn it -set -eu -ROOT=$(mock --print-root-path) -[ -d "$ROOT" ] || mock --quiet --init - -mock --offline --install dnf less sudo -mock --quiet --chroot -- sh -ec 'echo root:root | chpasswd; echo mockbuild:a | chpasswd; usermod -aG wheel mockbuild' - -sudo systemd-nspawn --boot --directory="$ROOT" --bind-ro="$HOME" --bind=/tmp