Shdwdrgn

joined 2 years ago
 

I built a new firewall under Debian 12. The machine has eight network ports, and during configuration I accidentally used the same name for a couple of the ports in the files under /etc/systemd/network/*.link. I ended up with two link files referencing two different MAC addresses but naming each of them as WAN0, and once systemd got that configuration it wouldn't let it go.

From what I could find online, normally I would just issue systemctl daemon-reload followed by a update-initramfs -u and after a reboot systemd should have had the updated information... but no dice this time. The way I finally discovered the problem was when I noticed under ifconfig that my wan0 port was pointing to the wrong MAC address (even though the link files had been corrected).

After several hours of fighting with it, I finally managed to get it to work by renumbering all of my link files, and now the information for each port matches up correctly. But my real question here is WHY did systemd refuse to read updated link files? Is there another step I should have taken which was mysteriously never mentioned in any of the dozens of web pages I looked at trying to fix this? I really need to understand the proper process for getting it to correctly use these files so I can maintain the machine in the future.

(God I miss the reliability of udev already)

[–] Shdwdrgn@mander.xyz 4 points 3 days ago* (last edited 3 days ago)

Woot!

[Edit] Wait, I just noticed this post is from 11 hours ago. Mander has been offline for me most of the day, but it was online about 7 hours ago and it just came back up again.

[–] Shdwdrgn@mander.xyz 69 points 1 week ago (1 children)

This right here is the main reason why Trump might succeed... The media has been beaten into submission and refuses to report the actual events that are occurring which make Trump look bad.

[–] Shdwdrgn@mander.xyz 208 points 1 week ago (7 children)

God that article was a horrible read. So for anyone who wants to skip it...

tl;dr: Hackers are using SSL certs from 2012 and changing the unprotected system clock in order to bypass security measures.

[–] Shdwdrgn@mander.xyz 17 points 2 weeks ago

People are just too impatient. Don't they know Trump promised to bring down the prices on his first day back in office? /s

[–] Shdwdrgn@mander.xyz 12 points 2 weeks ago (6 children)

You didn't see the quote in the above comment that specifically states Teslas don't have lidar but other brands using it weren't fooled?

[–] Shdwdrgn@mander.xyz 32 points 2 weeks ago

Trump Derangement Syndrome -- When you are so infatuated with Dear Leader that you will do anything for him, say anything to defend him, and try your best to be just like him.

[–] Shdwdrgn@mander.xyz 3 points 3 weeks ago

Give it a year, Trump will nuke it to melt the ice, build resorts there, and then sue the families of those who die from the fallout for slander.

Seriously though, it's pretty cool how they're able to collect so much data on things like this.

[–] Shdwdrgn@mander.xyz 5 points 3 weeks ago

Coming up on 57 here, but come on... if your job is politics, how can you not keep up with what's happening and how things are being done? I'm a computer nerd and I still feel like I know more about what's at stake with this vote than Schumer does.

[–] Shdwdrgn@mander.xyz 17 points 3 weeks ago (2 children)

Yeah it has us old Democrats fuming as well. I saw a poll posted yesterday regarding who was to blame is the gov shut down this weekend... it showed 32% blamed Trump, 32% blamed Republicans, and 33% blamed Democrats. Fuck it, I like those odds. Shut the whole thing down and let the majority of the US put the blame where it is due (Trump/GOP). The Senators could have stood their ground to fight for something, anything, but no, they had to weasel out. I'm happy to see both of my Senators have already publicly stated they would vote no (both on cloture and the CR), but it only takes 7 Dems to screw up the whole thing and we already know several of them will.

 

I'm building a new rack server (Poweredge R620) and am using the option "consoleblank=600" in the GRUB_CMDLINE_LINUX setting. During the setup I used the wrong memory stick and installed Bullseye, and screen blanking was working correctly there. Since I had already finished nearly all the configuration this week, I thought it would be easier to just do a regular dist upgrade than reloading the whole system.

After upgrading to Bookworm and rebooting, I notice that now when the screen blanking is supposed to kick in (which normally just turns off the display), I am instead getting what looks like rolling static on the screen. I have several other R620 racks running Buster so I know the screen blanking should work with this hardware, but this appears to be an issue specific to Bookworm.

Note that even when I try something like setterm -blank 1 or setterm -powerdown 1 I get the same resulting static after 1 minute. To be clear, this is specifically for the command line, I do not run desktops on my servers.

A google search for the problem has been unsuccessful so I'm hoping someone can point me to a solution or help with the proper search terms.

[–] Shdwdrgn@mander.xyz 3 points 3 weeks ago (3 children)

Are you trying to suggest that Ukrainians are extremists here? I mean seriously, what makes you think the country has the internet bandwidth to compete with what Twitter has available? For that matter, what makes you think they would have TIME for such things when Trump's master is dropping bombs on them?

[–] Shdwdrgn@mander.xyz 11 points 4 weeks ago

Even the older versions work pretty well, depending on the features you need. I use it for all my 3D modeling, I could never get the hang of other CAD software but this one just "makes sense" to me. I even used it last year to create a model of a trailer I wanted to build, worked out the finer details of how everything would fit together and some options like adding ramps, and once we got to the point of building the trailer it was just a matter of copying the dimensions and cutting out all the steel.

[–] Shdwdrgn@mander.xyz 9 points 4 weeks ago

And as usual, they always have to bury something in it that will directly hurt people.

 

I'm wondering if anyone has found (free) sources of data to use for live elections results, specifically the Presidential race? I've been building a map of poll results but would also like to put something together to watch the race tomorrow night.

 

A 1930s-era breakthrough is helping physicists understand how quantum threads could weave together into a holographic space-time fabric.

 

I have an annoying problem on my server and google has been of no help. I have two drives mirrored for the OS through mdadm, and I recently replaced them with larger versions through the normal process of replacing one at a time and letting the new drive re-sync, then growing the raids in place. Everything is working as expected, with the exception of systemd... It is filling my logs with messages of timing out while trying to locate both of the old drives that no longer exist. Mdadm itself is perfectly happy with the new storage space and has reported no issues, and since this is a server I can't just blindly reboot it to get systemd to shut the hell up.

So what's the solution here? What can I do to make this error message go away? Thanks.

[Update] Thanks to everyone who made suggestions below, it looks like I finally found the solution in systemctl daemon-reload however there is a lot of other great info provided to help with troubleshooting. I'm still trying to learn the systemd stuff so this has all been greatly appreciated!

 

Just in case there are others like myself who rarely check reddit any more, I thought it would be helpful to cross-post this. It won't look like much unless you have the solar eclipse glasses, but I plan to break out my tracker and camera (with solar filters!) to try and get some pics.

 

I have been struggling with this for over a month and still keep running into a brick wall. I am building a new firewall which has six network interfaces, and want to rename them to a known order (wan[0-1], and eth[0-3]). Since Bullseye has stopped honoring udev rules, I have created link files under /etc/systemd/network/ for each interface based on their MAC address. The two WAN interfaces seem to be working reliably but they're not actually plugged into anything yet (this may be an important but untested distinction).

What I've found is that I might get the interfaces renamed correctly when logging in from the keyboard, and this continues to work for multiple reboots. However if I SSH into the machine (which of course is my standard method of working on my servers) it seems to destroy systemd's ability to rename the interface on the next boot. I have played around with the order of the link file numbers to ensure the renumbering doesn't have the devices trying to step on each other, but to no avail. Fixing this problem seems to come down to three different solutions...

  • I can simply touch the eth*.link files and I'm back up afte a reboot.
  • Sometimes I have to get more drastic, actually opening and saving each of the files (without making any changes). WHY these two methods give me different results, I cannot say.
  • When nothing else works, I simply rename one or more of the eth*.link files, giving them a different numerical order. So far it doesn't seem to matter which of the files I rename, but systemd sees that something has changed and re-reads them.

Another piece of information I ran across is that systemd does the interface renaming very early in the boot process, even before the filesystems are mounted, and that you need to run update-initramfs -u to create a new initrd.img file for grub. OK, sounds reasonable... however I would expect the boot behavior to be identical every time I reboot the machine, and not randomly stop working after I sign in remotely. I've also found that generating a new initrd.img does no good unless I also touch or change the link files first, so perhaps this is a false lead.

This behavior just completely baffles me. Renaming interfaces based on MAC addresses should be an extremely simple task, and yet systemd is completely failing unless I change the link files every time I remote connect? Surely someone must have found a reliable way to change multiple interface names in the years since Bullseye was released?

Sorry, I know this is a rant against systemd and this whole "predictable" naming scheme, but all of this stuff worked just fine for the last 24 years that I've been running linux servers, it's not something that should require any effort at all to set up. What do I need to change so that systemd does what it is configured to do, and why is something as simple as a remote connection enough to completely break it when I do get it to work? Please help save my sanity!

(I realize essential details are missing, but this post is already way too long -- ask what you need and I shall provide!)

tl;dr -- Systemd fails to rename network interfaces on the next cycle if I SSH in and type 'reboot'

1
submitted 2 years ago* (last edited 2 years ago) by Shdwdrgn@mander.xyz to c/debian@lemmy.ml
 

I've been running systems up to Buster and have always had the 'quiet' option in the grub settings to show the regular service startup messages (the colored ones showing [ok] and such but not all the dmesg stuff). I just upgraded a server to bullseye and there are zero messages being displayed now except an immediate message about not being able to use IRQ 0. Worse, google can't seem to find any information on this. If I remove the quiet option from grub then I see those service messages again, along with all the other stuff I don't need.

What is broken and how do I fix this issue? I assumed it would be safe to upgrade by now but this seems like a pretty big problem if I ever need to troubleshoot a system.

[Edit] In case anyone else finds this post searching for the same issue… Apparently the trick is that now you MUST install plymouth, even on systems that do not have a desktop environment. For whatever reason plymouth has taken over the job of displaying the text startup messages now. Keep your same grub boot parameters (quiet by itself, without the splash option) and you will get the old format of startup messages showing once again. It’s been working fine the old way for 20+ years but hey let’s change something just for the sake of confusing everyone.

[Edit 2] Thanks to marvin below, I now have a final solution that no longer requires plymouth to be installed. Edit /etc/default/grub and add systemd.show_status=true to GRUB_CMDLINE_LINUX_DEFAULT. In my case to full line is:

GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.show_status=true"

Don't forget to run update-grub after you save your changes.

 

Just curious if any such communities exist here. I built a DIY weather station from 3D prints and an ESP 8266, always looking for improvements on the design, but after a massive downpour yesterday I'm also looking for tips on more accurately calibrating my rain gauge.

view more: next ›