Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Alternative upgrade mechanism

    Scheduled Pinned Locked Moved Development
    10 Posts 2 Posters 6.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MrMoo
      last edited by

      Or subtitle:  How much memory?

      At the moment the three embedded systems of m0n0wall, FreeNAS, and pfSense all use dd to perform full upgrades on HDD/CF images.  In pfSense I see the development of an binary patch update mechanism but unfortunately only allows updates and new files.  I went for an alternative of allowing upload of compressed ISO images, decompressing into MFS, and then using rsync with a quite a few options to the local root file system.  The ISO images I generate are significantly smaller as their is no configuration partition.

      
      rsync \
      	--verbose \
      	--archive \
      	--hard-links \
      	--dry-run \
      	--one-file-system \
      	--delete-after \
      	--delay-updates \
      	--numeric-ids \
      	--checksum \
      	--omit-dir-times \
      	--ignore-times \
      	--exclude=etc/fstab
      
      

      With suitable hosting it should be possible to use rsync+ssh as another alternative completely avoiding upload & decompressing the firmware image.

      1 Reply Last reply
      Reply Quote 0
      • S
        sullrich
        last edited by

        See the RC2e thread.  I have scripts that do something similar now.

        1 Reply Last reply
        Reply Quote 0
        • M
          MrMoo
          last edited by

          I'm actually having a lot of problems with the FreeBSD kernel panicing now, it worked fine on NFS root and there is plenty of memory available (256MB).  I can mount the image, rsync, but after unmounting the kernel panics and reboots.

          :(

          1 Reply Last reply
          Reply Quote 0
          • S
            sullrich
            last edited by

            Which version?  6.1-RELEASE?

            1 Reply Last reply
            Reply Quote 0
            • M
              MrMoo
              last edited by

              RELENG_6 from CVS, I'm justing rebuilding with the latest now.  I used to use RELENG_6_1 but it broke so I went back to 6, the release tag is RELENG_6_1_RELEASE?

              1 Reply Last reply
              Reply Quote 0
              • S
                sullrich
                last edited by

                Ahh okay, RELENG_6 should be stable.  There was a major NFS bug in 6.1 release however.

                1 Reply Last reply
                Reply Quote 0
                • M
                  MrMoo
                  last edited by

                  Nice, but on NFS its ok, I'll try a few different tag versions today and see what works.  Fixing this I can get another release out and work on the VLAN DHCP support.

                  1 Reply Last reply
                  Reply Quote 0
                  • M
                    MrMoo
                    last edited by

                    Release is RELENG_6_1_0_RELEASE, trying that instead  :D

                    1 Reply Last reply
                    Reply Quote 0
                    • M
                      MrMoo
                      last edited by

                      After some Gentoo inspired mistakes, I think I have pin pointed this bug (?) down to unmounting a second mount of the root device.  Is this a known strange problem?  ???

                      1 Reply Last reply
                      Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        Andrew fixed a few things in this area over the weekend.

                        1 Reply Last reply
                        Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post
                        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                        Privacy Policy · Cookie Policy