0

Currently I have a system mount file like so:

[Unit]
Description=Mount boot partition

[Mount]
What=/dev/mmcblk0p2
Where=/boot
Type=ext4
Options=defaults

[Install]
WantedBy=multi-user.target

I'm mounting partition 2 of mmcblk0.

Is there a way to instead mount partition 2 of whatever storage / is using?

If I'm booted on usb, it would use /dev/sda2, if I'm booted on emmc, it would use /dev/mmcblk0p2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.