blob: a001a2b8922c812540e607a417e6adfd5cb617ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
fetch_source() {
echo "Extracting from running system..."
}
build() {
COPYLIST="list_dpkg_output"
[ -e "${COPYLIST}" ] && rm "${COPYLIST}"
list_packet_files >> "${COPYLIST}"
tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"
# Generate systemd files
mkdir -p "$MODULE_BUILD_DIR/etc/systemd/system/dbus.service.d"
# This is REQUIRED, otherwise the session daemon won't start (can be empty, but has to exist...)
mkdir -p "${MODULE_BUILD_DIR}/etc/dbus-1/session.d"
# We will either find the service file or generate it,
# thus we can already create the drop-in for uuidgen
UUIDGEN=$(find "$MODULE_BUILD_DIR" -name dbus-uuidgen -executable | head -n 1)
[ -z "$UUIDGEN" ] && perror "Could not determine dbus-uuidgen location"
cat <<-EOF > "$MODULE_BUILD_DIR/etc/systemd/system/dbus.service.d/uuidgen.conf"
[Service]
ExecStartPre=/${UUIDGEN#$MODULE_BUILD_DIR} --ensure
EOF
}
post_copy() {
:
}
|