nsroot, what directories need to be host-specific?

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 playing with an nfsroot boot for multiple hosts; Ubuntu has some dated docs that recommend:



#/etc/fstab
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0


I've notice already that /var/lib/dhcp needs to be mounted additionally otherwise clients conflict with eachother.



I tried for a while, an aggressive /var tmpfs:



#/etc/fstab
none /var tmpfs defaults 0 0


But i worry about things like Apt, that rely on /var/lib for shared state. This woudln't be the first time apt's file lay our has annoyed me-.



Additionally with the usual /var/run -> /run, /var/lock -> /run/lock, I worry about stepping on soemthing I didn't mean to with that aggressive /var tmpfs, so I'm curious, can anyone recommended a shared-root-fs tmpfs excludes list?



I'm open to introducing symlinks where it makes sense, though I've noticed a lot of applications will wipe them out, not bothering to check if the system is trying to redirect its nonsense-.







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm playing with an nfsroot boot for multiple hosts; Ubuntu has some dated docs that recommend:



    #/etc/fstab
    none /tmp tmpfs defaults 0 0
    none /var/run tmpfs defaults 0 0
    none /var/lock tmpfs defaults 0 0
    none /var/tmp tmpfs defaults 0 0


    I've notice already that /var/lib/dhcp needs to be mounted additionally otherwise clients conflict with eachother.



    I tried for a while, an aggressive /var tmpfs:



    #/etc/fstab
    none /var tmpfs defaults 0 0


    But i worry about things like Apt, that rely on /var/lib for shared state. This woudln't be the first time apt's file lay our has annoyed me-.



    Additionally with the usual /var/run -> /run, /var/lock -> /run/lock, I worry about stepping on soemthing I didn't mean to with that aggressive /var tmpfs, so I'm curious, can anyone recommended a shared-root-fs tmpfs excludes list?



    I'm open to introducing symlinks where it makes sense, though I've noticed a lot of applications will wipe them out, not bothering to check if the system is trying to redirect its nonsense-.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm playing with an nfsroot boot for multiple hosts; Ubuntu has some dated docs that recommend:



      #/etc/fstab
      none /tmp tmpfs defaults 0 0
      none /var/run tmpfs defaults 0 0
      none /var/lock tmpfs defaults 0 0
      none /var/tmp tmpfs defaults 0 0


      I've notice already that /var/lib/dhcp needs to be mounted additionally otherwise clients conflict with eachother.



      I tried for a while, an aggressive /var tmpfs:



      #/etc/fstab
      none /var tmpfs defaults 0 0


      But i worry about things like Apt, that rely on /var/lib for shared state. This woudln't be the first time apt's file lay our has annoyed me-.



      Additionally with the usual /var/run -> /run, /var/lock -> /run/lock, I worry about stepping on soemthing I didn't mean to with that aggressive /var tmpfs, so I'm curious, can anyone recommended a shared-root-fs tmpfs excludes list?



      I'm open to introducing symlinks where it makes sense, though I've noticed a lot of applications will wipe them out, not bothering to check if the system is trying to redirect its nonsense-.







      share|improve this question












      I'm playing with an nfsroot boot for multiple hosts; Ubuntu has some dated docs that recommend:



      #/etc/fstab
      none /tmp tmpfs defaults 0 0
      none /var/run tmpfs defaults 0 0
      none /var/lock tmpfs defaults 0 0
      none /var/tmp tmpfs defaults 0 0


      I've notice already that /var/lib/dhcp needs to be mounted additionally otherwise clients conflict with eachother.



      I tried for a while, an aggressive /var tmpfs:



      #/etc/fstab
      none /var tmpfs defaults 0 0


      But i worry about things like Apt, that rely on /var/lib for shared state. This woudln't be the first time apt's file lay our has annoyed me-.



      Additionally with the usual /var/run -> /run, /var/lock -> /run/lock, I worry about stepping on soemthing I didn't mean to with that aggressive /var tmpfs, so I'm curious, can anyone recommended a shared-root-fs tmpfs excludes list?



      I'm open to introducing symlinks where it makes sense, though I've noticed a lot of applications will wipe them out, not bothering to check if the system is trying to redirect its nonsense-.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 15 '17 at 5:53









      ThorSummoner

      1,10741327




      1,10741327




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          this is my current WIP:



          #/etc/fstab
          proc /proc proc defaults 0 0
          none /tmp tmpfs defaults 0 0
          none /media tmpfs defaults 0 0

          none /var/lib/dhcp tmpfs defaults 0 0
          none /tmp tmpfs defaults 0 0
          none /run tmpfs defaults 0 0
          none /var/tmp tmpfs defaults 0 0





          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%2f398201%2fnsroot-what-directories-need-to-be-host-specific%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
            0
            down vote













            this is my current WIP:



            #/etc/fstab
            proc /proc proc defaults 0 0
            none /tmp tmpfs defaults 0 0
            none /media tmpfs defaults 0 0

            none /var/lib/dhcp tmpfs defaults 0 0
            none /tmp tmpfs defaults 0 0
            none /run tmpfs defaults 0 0
            none /var/tmp tmpfs defaults 0 0





            share|improve this answer


























              up vote
              0
              down vote













              this is my current WIP:



              #/etc/fstab
              proc /proc proc defaults 0 0
              none /tmp tmpfs defaults 0 0
              none /media tmpfs defaults 0 0

              none /var/lib/dhcp tmpfs defaults 0 0
              none /tmp tmpfs defaults 0 0
              none /run tmpfs defaults 0 0
              none /var/tmp tmpfs defaults 0 0





              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                this is my current WIP:



                #/etc/fstab
                proc /proc proc defaults 0 0
                none /tmp tmpfs defaults 0 0
                none /media tmpfs defaults 0 0

                none /var/lib/dhcp tmpfs defaults 0 0
                none /tmp tmpfs defaults 0 0
                none /run tmpfs defaults 0 0
                none /var/tmp tmpfs defaults 0 0





                share|improve this answer














                this is my current WIP:



                #/etc/fstab
                proc /proc proc defaults 0 0
                none /tmp tmpfs defaults 0 0
                none /media tmpfs defaults 0 0

                none /var/lib/dhcp tmpfs defaults 0 0
                none /tmp tmpfs defaults 0 0
                none /run tmpfs defaults 0 0
                none /var/tmp tmpfs defaults 0 0






                share|improve this answer














                share|improve this answer



                share|improve this answer








                answered Oct 15 '17 at 5:58


























                community wiki





                ThorSummoner




























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398201%2fnsroot-what-directories-need-to-be-host-specific%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?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?