forked from RPi-Distro/pi-gen
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
03.system-tweaks: configure automounting
Install udiskie: lightweight automounter daemon for removable media on Linux. Install and enable udiskie.service file. Signed-off-by: mlradu <larisa.radu@analog.com>
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
stages/03.system-tweaks/05.automount/00.install-packages/packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
udiskie |
13 changes: 13 additions & 0 deletions
13
stages/03.system-tweaks/05.automount/files/udiskie.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Udiskie service for managing removable media | ||
After=network.target | ||
|
||
[Service] | ||
# Start udiskie with the following parameters to make it independent of the desktop environment: | ||
# --no-notify: suppresses desktop notifications | ||
# -f "": prevents udiskie from managing any devices | ||
ExecStart=/usr/bin/udiskie --no-notify -f "" | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# kuiper2.0 - Embedded Linux for Analog Devices Products | ||
# | ||
# Copyright (c) 2024 Analog Devices, Inc. | ||
# Author: Larisa Radu <larisa.radu@analog.com> | ||
|
||
# Add udiskie service | ||
install -m 644 "${BASH_SOURCE%%/run.sh}"/files/udiskie.service "${BUILD_DIR}/lib/systemd/system/" | ||
|
||
chroot "${BUILD_DIR}" << EOF | ||
# Enable udiskie service to run automatically at every boot | ||
systemctl enable udiskie | ||
EOF |