Created
September 8, 2024 06:38
-
-
Save wirwolf/6fffcad2df82c8901c4fdaaa617d20c8 to your computer and use it in GitHub Desktop.
/etc/systemd/system/mount-disk.service
This file contains hidden or 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
[Unit] | |
Description=Mount /dev/disk/by-id/ata-QEMU_HARDDISK_QM00009-part1 to /mnt | |
After=local-fs.target | |
Requires=local-fs.target | |
ConditionPathExists=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00009-part1 | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mount /dev/disk/by-id/ata-QEMU_HARDDISK_QM00009-part1 /mnt | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment