How to specify cryptdevice by label using systemd boot?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running Arch Linux with systemd boot. In /boot/loader/entries/arch.conf
I currently specify the luks crypto device with a line like this:
options rw cryptdevice=/dev/sda1:ABC root=/dev/mapper/ABC
I know I can also use UUID instead of /dev/sda1
. In that case the kernel options line would look like this:
options rw cryptdevice=UUID=1f5cce52-8299-9221-b2fc-19cebc959f51:ABC root=/dev/mapper/ABC
However, can I instead use either a partition label or a volume label or any other kind of label? If so, what is the syntax?
kernel luks dm-crypt systemd-boot
add a comment |Â
up vote
0
down vote
favorite
I'm running Arch Linux with systemd boot. In /boot/loader/entries/arch.conf
I currently specify the luks crypto device with a line like this:
options rw cryptdevice=/dev/sda1:ABC root=/dev/mapper/ABC
I know I can also use UUID instead of /dev/sda1
. In that case the kernel options line would look like this:
options rw cryptdevice=UUID=1f5cce52-8299-9221-b2fc-19cebc959f51:ABC root=/dev/mapper/ABC
However, can I instead use either a partition label or a volume label or any other kind of label? If so, what is the syntax?
kernel luks dm-crypt systemd-boot
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running Arch Linux with systemd boot. In /boot/loader/entries/arch.conf
I currently specify the luks crypto device with a line like this:
options rw cryptdevice=/dev/sda1:ABC root=/dev/mapper/ABC
I know I can also use UUID instead of /dev/sda1
. In that case the kernel options line would look like this:
options rw cryptdevice=UUID=1f5cce52-8299-9221-b2fc-19cebc959f51:ABC root=/dev/mapper/ABC
However, can I instead use either a partition label or a volume label or any other kind of label? If so, what is the syntax?
kernel luks dm-crypt systemd-boot
I'm running Arch Linux with systemd boot. In /boot/loader/entries/arch.conf
I currently specify the luks crypto device with a line like this:
options rw cryptdevice=/dev/sda1:ABC root=/dev/mapper/ABC
I know I can also use UUID instead of /dev/sda1
. In that case the kernel options line would look like this:
options rw cryptdevice=UUID=1f5cce52-8299-9221-b2fc-19cebc959f51:ABC root=/dev/mapper/ABC
However, can I instead use either a partition label or a volume label or any other kind of label? If so, what is the syntax?
kernel luks dm-crypt systemd-boot
kernel luks dm-crypt systemd-boot
asked Sep 22 at 6:12
MountainX
4,7312369119
4,7312369119
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
cryptsetup
can create a label on a cryptdevice. Look in /dev/disk/by-label to make sure it matches. So
cryptdevice=LABEL=labelname
in the same way as
root=LABEL=ROOT
works for a ROOT
labelled root device
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
cryptsetup
can create a label on a cryptdevice. Look in /dev/disk/by-label to make sure it matches. So
cryptdevice=LABEL=labelname
in the same way as
root=LABEL=ROOT
works for a ROOT
labelled root device
add a comment |Â
up vote
1
down vote
cryptsetup
can create a label on a cryptdevice. Look in /dev/disk/by-label to make sure it matches. So
cryptdevice=LABEL=labelname
in the same way as
root=LABEL=ROOT
works for a ROOT
labelled root device
add a comment |Â
up vote
1
down vote
up vote
1
down vote
cryptsetup
can create a label on a cryptdevice. Look in /dev/disk/by-label to make sure it matches. So
cryptdevice=LABEL=labelname
in the same way as
root=LABEL=ROOT
works for a ROOT
labelled root device
cryptsetup
can create a label on a cryptdevice. Look in /dev/disk/by-label to make sure it matches. So
cryptdevice=LABEL=labelname
in the same way as
root=LABEL=ROOT
works for a ROOT
labelled root device
answered Sep 22 at 6:53
danblack
2294
2294
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470665%2fhow-to-specify-cryptdevice-by-label-using-systemd-boot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password