Copy systemd units before setup

This commit is contained in:
Takumi Sueda
2023-07-28 20:43:26 +09:00
parent d534aa7416
commit b242f06d78
4 changed files with 11 additions and 6 deletions

10
os-brainux/override-pre.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -uex -o pipefail
SRC=$1
DST=$2
install -g root -o root -m 0644 $SRC/lib/systemd/system/boot.mount $DST/lib/systemd/system/boot.mount
install -g root -o root -m 0644 $SRC/lib/systemd/system/rndis_gadget.service $DST/lib/systemd/system/rndis_gadget.service
install -g root -o root -m 0755 $SRC/usr/bin/enable_rndis_gadget $DST/usr/bin/enable_rndis_gadget