How to apply udev rules to boot device after (not during) boot?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Goal is to have the Linux OS running in a minimal/bare way: strip everything that is not essential to boot the OS, from the boot process. The machine won't be a desktop, not a typical flexible server, more like an appliance.



  1. Non essential modules are not loading during boot.


  2. Udev was removed from initramfs.


  3. A custom hook was created to be able to boot into a btrfs file system without udev.

Udev is started after the initramfs phase. As a result my (custom) udev ACTION="add,change" rule is not applied to the boot device.



Which approach to take to apply udev rules to the boot device after — not during — boot? Is there something like ACTION="udev_init"?







share|improve this question


























    up vote
    0
    down vote

    favorite












    Goal is to have the Linux OS running in a minimal/bare way: strip everything that is not essential to boot the OS, from the boot process. The machine won't be a desktop, not a typical flexible server, more like an appliance.



    1. Non essential modules are not loading during boot.


    2. Udev was removed from initramfs.


    3. A custom hook was created to be able to boot into a btrfs file system without udev.

    Udev is started after the initramfs phase. As a result my (custom) udev ACTION="add,change" rule is not applied to the boot device.



    Which approach to take to apply udev rules to the boot device after — not during — boot? Is there something like ACTION="udev_init"?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Goal is to have the Linux OS running in a minimal/bare way: strip everything that is not essential to boot the OS, from the boot process. The machine won't be a desktop, not a typical flexible server, more like an appliance.



      1. Non essential modules are not loading during boot.


      2. Udev was removed from initramfs.


      3. A custom hook was created to be able to boot into a btrfs file system without udev.

      Udev is started after the initramfs phase. As a result my (custom) udev ACTION="add,change" rule is not applied to the boot device.



      Which approach to take to apply udev rules to the boot device after — not during — boot? Is there something like ACTION="udev_init"?







      share|improve this question














      Goal is to have the Linux OS running in a minimal/bare way: strip everything that is not essential to boot the OS, from the boot process. The machine won't be a desktop, not a typical flexible server, more like an appliance.



      1. Non essential modules are not loading during boot.


      2. Udev was removed from initramfs.


      3. A custom hook was created to be able to boot into a btrfs file system without udev.

      Udev is started after the initramfs phase. As a result my (custom) udev ACTION="add,change" rule is not applied to the boot device.



      Which approach to take to apply udev rules to the boot device after — not during — boot? Is there something like ACTION="udev_init"?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 '17 at 18:18









      jasonwryan

      47k14127176




      47k14127176










      asked Nov 18 '17 at 9:47









      Pro Backup

      1,93452853




      1,93452853

























          active

          oldest

          votes











          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%2f405413%2fhow-to-apply-udev-rules-to-boot-device-after-not-during-boot%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405413%2fhow-to-apply-udev-rules-to-boot-device-after-not-during-boot%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

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

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay