How to specify cryptdevice by label using systemd boot?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question

























    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?










    share|improve this question























      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 22 at 6:12









      MountainX

      4,7312369119




      4,7312369119




















          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






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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






            share|improve this answer
























              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






              share|improve this answer






















                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






                share|improve this answer












                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







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 22 at 6:53









                danblack

                2294




                2294



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    eVePaU,SEQ53A,NX TrOooScDx01ti xr Eo5FTW,CZi3wUQ3Z33MNF,yty4 W3 MuEJW5,H ew5QTsnT4Ihk79dFn
                    COqjV9r tXsoBVGp HodyPJWdYB1ArzbI,0m0R2V2vWjSnqIQCCYA o

                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    How many registers does an x86_64 CPU actually have?

                    Displaying single band from multi-band raster using QGIS