You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
systemf/scripts/export-units-from-archlinux.sh

8 lines
328 B
Bash

#!/usr/bin/env bash
set -e;
cd "$(dirname "$0")/..";
TARGET_DIR="$PWD/resources/systemd-root";
test -d "$TARGET_DIR" || mkdir "$TARGET_DIR";
docker run --rm -v "$TARGET_DIR:/out" -u 1000 archlinux sh -c 'tar -C / -Oc usr/lib/systemd usr/share/systemd var/lib/systemd etc/systemd | tar -C /out -xf-'
chmod a+rw -R "$TARGET_DIR";