|
From: Lonnie A. <li...@lo...> - 2025-05-07 14:44:30
|
> You could build a few of them (USB) in advance and just plug them into whatever hardware you happen to use. Do you think I could write a script that checks the NIC MAC’s on bootup and automatically regenerates 70-persistent-net.rules if they are different?
Not on bootup, the 70-persistent-net.rules file is used early when udev is initiated and NIC modules loaded.
You could create a /mnt/kd/rc.local.stop shell script (make executable)
-- /mnt/kd/rc.local.stop --
#!/bin/sh
RULES_FILE="/mnt/asturw/etc/udev/rules.d/70-persistent-net.rules"
## Remove 70-persistent-net.rules on shutdown
if [ -f "$RULES_FILE" ]; then
rm "$RULES_FILE"
fi
--
So, if the system was shutdown cleanly, this would work.
Lonnie
> On May 6, 2025, at 8:57 PM, Michael Knill <mic...@ip...> wrote:
>
> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Aptos; panose-1:2 11 6 4 2 2 2 2 2 4;} @font-face {font-family:"Times New Roman \(Body CS\)"; panose-1:2 11 6 4 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:12.0pt; font-family:"Aptos",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --> Thanks Lonnie. Yep was aware of removing the 70-persistent-net.rules when changing hardware (and VM’s too in some cases).
> Yes I will likely use NVMe but the USB did seem attractive. You could build a few of them in advance and just plug them into whatever hardware you happen to use. Do you think I could write a script that checks the NIC MAC’s on bootup and automatically regenerates 70-persistent-net.rules if they are different?
> Regards
> Michael Knill
> From: Lonnie Abelbeck <li...@lo...>
> Date: Wednesday, 7 May 2025 at 6:03 am
> To: AstLinux Users Mailing List <ast...@li...>
> Subject: Re: [Astlinux-users] New Protectli hardware
> A reminder, whenever switching an AstLinux drive from box to box, be-it SATA, NVMe or USB, be sure to remove the file:
> --
> /mnt/asturw/etc/udev/rules.d/70-persistent-net.rules
> --
> before shutdown, then when paced into the new box it will be auto-generated from the new box NIC MACs.
>
> BTW, I tested an AstLinux box with only a "SAMSUNG FIT Plus 3.1 USB Flash Drive, 128GB" as storage. It worked as expected, about as fast as a M.2 SATA drive. While running, I removed the USB drive and re-inserted it, while a reboot was needed to recover, no data loss was detected.
>
> All in all, I would recommend an NVMe drive with the "V1210 – 2 Port Intel® N5105" over a USB drive. (AstLinux 1.5.10)
>
> Lonnie
>
>
> > On May 5, 2025, at 8:34 PM, Michael Knill <mic...@ip...> wrote:
> >
> > Thanks Lonnie for the info. Yes I was aware Netgate had some eMMC issues.
> > Interesting concept using a USB Flash drive for storage. This could be quite handy for field hardware replacement e.g. just move across the drive to the new hardware.
> > Regards
> > Michael Knill
> > From: Lonnie Abelbeck <li...@lo...>
> > Date: Monday, 5 May 2025 at 12:46 pm
> > To: AstLinux Users Mailing List <ast...@li...>
> > Subject: Re: [Astlinux-users] New Protectli hardware
> > Hi Michael,
> >
> > In mid-2020 I purchased a "Protectli FW4B CPU J3160 NIC x4" with Coreboot, and it worked with AstLinux out of the box.
> >
> > The "V1210 – 2 Port Intel® N5105" should work (test to be sure) with the just released AstLinux 1.5.10 as it uses M.2 NVMe.
> >
> > AstLinux does not support eMMC storage (kernel CONFIG_MMC disabled). Supporting eMMC has been discussed, but being non-removable, slowish and typically of poor quality, it was never a production solution in my mind. [1]
> >
> > I recently purchased a "Silicon Power 128GB NVMe M.2" for $19 USD, a far better choice than non-removable eMMC.
> >
> > Even quality (stubby) USB storage "SAMSUNG FIT Plus 3.1 USB Flash Drive, 128GB" is $15 USD would be better than eMMC ... this would work with pre-1.5.10 AstLinux. With some caveats [2].
> >
> > Lonnie
> >
> > [1] I have read where some Netgate appliances stopped booting because after a couple years the eMMC failed.
> >
> > [2] https://doc.astlinux-project.org/userdoc:boot-usb-storage
> >
> >
> >
> > > On May 4, 2025, at 7:59 PM, Michael Knill <mic...@ip...> wrote:
> > >
> > > Hi All
> > > There is new Protecli hardware (https://protectli.com/product/v1210/) which I was wondering if it was compatible with Astlinux? I would be wanting to use the onboard 32G eMMC.
> > > Regards
> > > Michael Knill
> > > Managing Director
> > > D: +61 2 6189 1360
> > > P: +61 2 6140 4656
> > > E: mic...@ip...
> > > W: ipcsolutions.com.au
> > > <image001.png>Smarter Business Communications
> > > _______________________________________________
> > > Astlinux-users mailing list
> > > Ast...@li...
> > > https://lists.sourceforge.net/lists/listinfo/astlinux-users
> > >
> > > Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
> >
> >
> >
> >
> > _______________________________________________
> > Astlinux-users mailing list
> > Ast...@li...
> > https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >
> > Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
> > _______________________________________________
> > Astlinux-users mailing list
> > Ast...@li...
> > https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >
> > Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
>
>
>
>
> _______________________________________________
> Astlinux-users mailing list
> Ast...@li...
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
> _______________________________________________
> Astlinux-users mailing list
> Ast...@li...
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
|