-
parv
-
VimDiesel
Title: Ed Maste: "The FUD about #FreeBSD's pf port is rather tediou…" - Mastodon
-
_xor
That 3rd link is awesome.
-
TommyC
_xor: Is the syntax the same? If they are, we could use the same lexer and parser even if the backend is handled differently.
-
rtprio
TommyC: i think there's more than just the lexer/parser
-
_xor
Hmm, is there a signal that triggers the process to exit with a success code?
-
_xor
Front-end would probably be the least of the worries, I would think.
-
_xor
I imagine it would be the implementation-specifics of the processing/matching engine, with my comment earlier basically alluding to that thread-safe in FreeBSD and can be scheduled on multiple cores or whatnot.
-
_xor
I did read a comment saying that packet processing doesn't benefit as much from multi-threading since the nature of processing/matching typically involves a window of just a few packets before all operations would be blocked (e.g. re-assembling fragments might be one example).
-
rwp
_xor, Most signals are due to an exceptional condition and therefore the process should exit with a non-zero exit code.
-
rwp
man 3 signal
-
rwp
Then look at the action and description of the action.
-
rwp
However a program can be written to do other things. And actually incorrectly handling signals is a too common bug in many programs.
-
rwp
Why do you want to kill a program and have it exit zero?
-
» rwp is now relocating from here to there
-
moviuro
Packaging mishap in acme.sh? Extracting acme.sh-3.0.6_1: 100% ## [: !-f: unexpected operator
-
parv
Interesting
-
parv
Would that be in some post-install script?
-
moviuro
yes parv , looks like it. happened on two different jails
-
parv
moviuro, Do you have the file name?
-
moviuro
nope
-
meena
-
VimDiesel
Title: freebsd-ports/security/acme.sh/pkg-install at main · freebsd/freebsd-ports · GitHub
-
meena
Line 6: if [ !-f /var/log/acme.sh.log ]
-
meena
^-- SC1035 (error): You are missing a required space here.
-
meena
moviuro: wanna submit a bug / patch?
-
moviuro
meena: should I do that on freebsd bugs or on github?
-
moviuro
(and yes, I can do that)
-
meena
Also, I'm not sure that script is pkg -c / pkg -r safe
-
meena
imagine if
man.freebsd.org/pkg-lua-script(5) had examples of how to convert bad shell scripts to good lua scripts
-
VimDiesel
Title: pkg-lua-script(5)
-
parv
meena, I was searching for a file in "acme.sh*.pkg" but could not find one. Oh, that is stuffed right in +MANIFEST
-
moviuro
-
VimDiesel
Title: 274348 – security/acme.sh pkg-install bug in 3.0.6_1
-
meena
moviuro: thanks
-
moviuro
meena: doesn't pkg(8) pass some env variables like $DEST_ROOT or similar?
-
meena
I don't know
-
meena
i'd have to read the code, or create a package that puts env output into a log file
-
meena
PKG_ROOTDIR
-
meena
${PKG_ROOTDIR}${PKG_PREFIX}
-
meena
instead of of /usr/local. and i think /usr/bin/install can stay the way it is, since it's not a binary that needs to be of a certain ABI for this operation to succeed
-
cdrmack
o/
-
cdrmack
RhodiumToad, you there?
-
RhodiumToad
?
-
» RhodiumToad appears as if summoned
-
cdrmack
damn, that was quick
-
cdrmack
do you have few minutes to speak a bit more about make and makefiles?
-
RhodiumToad
sure
-
cdrmack
awesome
-
cdrmack
So I have read yet few more articles and man page once again.
-
cdrmack
First question - makefiles in usr/share/mk are generic makefiles that we can/should include in our own projects or maybe these should be used only when building FreeBSD from the source?
-
RhodiumToad
bsd make includes /usr/share/mk/sys.mk automatically (iirc) and obviously therefore anything it includes.
-
cdrmack
I still didn't figure out how to force make to move my *.o files to `build` directory, that's how I have found bsd.obj.mk
-
RhodiumToad
but the rest is really best left alone unless you're building freebsd itself
-
RhodiumToad
when it comes to having a separate build dir, that's getting into territory where bsd make differs from other makes, and so you need to start thinking about portability.
-
cdrmack
hmmm
-
cdrmack
okay, one step at a time
-
cdrmack
I went through the bsd.obj.mk file and found comments how we can set custom build directory
-
RhodiumToad
personally, I use exclusively GNU make unless I'm working on freebsd (src or ports)
-
cdrmack
if I create `obj` in my source tree it will be used automatically
-
cdrmack
but there should be a way to set custom one with env MAKEOBJDIR=<stuff> but it doesn't work for me
-
cdrmack
maybe I should switch to GNU make, there is no really a good reason why I'm forcing myself to use it
-
cdrmack
except the fact that it's here by default and I'm trying to learn/focus on what's available out of the box
-
cdrmack
I can stick with `obj` directory for now, not a big deal though - was just curious why it doesn't work
-
cdrmack
since my main motivation is to keep learning things
-
RhodiumToad
eh. you can't build more than like 3 ports before something pulls in gmake as a build dep
-
cdrmack
I see, good to know
-
cdrmack
there are bunch of materials about gnu make, saw that wildcards feature which makes such things pretty simple
-
RhodiumToad
maybe I exaggerate slightly but gmake is very commonly used by ports
-
RhodiumToad
one thing that gmake isn't very good at is numeric comparison, that's about the only feature bmake has that gmake doesn't
-
RhodiumToad
however, bmake's syntax for most complex stuff looks like linenoise, whereas gmake has actual names for functions
-
cdrmack
I see, will stick with learning bmake basics and then move to gnu make then
-
cdrmack
do you mind asking few more questions?
-
RhodiumToad
go ahead
-
cdrmack
last time you mentioned keeping separate files for list of source files only in the subdirectories, do you have an example of that somewhere so I can see?
-
RhodiumToad
er
-
RhodiumToad
probably not, unfortunately
-
cdrmack
let's say I have `src` directory with `foo.c` and `bar.c`
-
cdrmack
inside
-
cdrmack
should I create there `Makefile` with sth like `SRC:= foo.c bar.c` and then .include that in my main Makefile?
-
RhodiumToad
I wouldn't call it Makefile in such a case
-
cdrmack
okay, so it can be any file
-
RhodiumToad
since Makefile is the default name used by make, its presence in a directory suggests you can run make in that directory to do something useful
-
cdrmack
.include "file" will simply attach content of that file in place of the .include line? like #include in C?
-
RhodiumToad
yes
-
cdrmack
does the order matter? do I need to .include "src/notaMakefile" before I will use that variable inside?
-
cdrmack
not sure if make parses Makefile once or more
-
RhodiumToad
the order sometimes matters and sometimes doesn't. Remember that when you assign a variable with = rather than := (and you should almost always use = unless you know why not to), the value isn't expanded until referenced
-
RhodiumToad
the makefile is parsed once
-
cdrmack
lemme try in the background, one sec
-
cdrmack
looks like it doesn't matter where I include this file
-
cdrmack
now I have another problem though
-
cdrmack
after including that file in my Makefile, my ${SRCS} variable (defined in a separate file in a subdir) stores "foo.c bar.c" but should have "src/foo.c src/bar.c"
-
cdrmack
I have used some fancy replacement to define objs based on srcs, OBJS= ${SRCS:%.c=%.o}
-
RhodiumToad
are you planning to extend this to multiple subdirs?
-
cdrmack
probably sth similar can be done with adding dir in front but I have no idea what kind of syntax that is to even start searching for some docs
-
cdrmack
at this stage I planned to have only "src", "inc" and "tests"
-
RhodiumToad
stuff like adding the dir in front is another thing that varies between different makes
-
cdrmack
;_;
-
cdrmack
looks like I will have to read about GNU Make sooner than I initially planned
-
cdrmack
two last questions and I need to go with a dog, sorry
-
cdrmack
1. do you have different makefiles for building binary and library or maybe you keep everything in one Makefile and simply add new targets?
-
cdrmack
2. what kind of syntax this is "OBJS= ${SRCS:%.c=%.o}"? where I can read more about it to solve other issues when I need it?
-
RhodiumToad
I think $(SRCS:%=src/%) might work in both bmake and gmake but I've not tested it recently
-
RhodiumToad
for bmake see "Variable modifiers" in the manpage, for gmake see "Substitution references" in the info or html doc
-
RhodiumToad
bmake has a huge array of variable modifiers that can make variable refs look like linenoise, whereas gmake relies on named functions instead
-
RhodiumToad
e.g. $(SRCS:M*.c) in bmake vs. $(filter %.c,$(SRCS)) in gmake
-
RhodiumToad
note that while both ${foo} and $(foo) work in both bmake and gmake, outside of the BSD world the $(foo) form is universally used
-
cdrmack
I see
-
cdrmack
thanks a lot once again
-
cdrmack
will spend some time on these resources before bothering you again :)
-
cdrmack
have a good one, gotta go with the doggo
-
cdrmack
o/
-
meena
RhodiumToad: how hard would it be to add those GNU functions to bmake?
-
RhodiumToad
dunno
-
RhodiumToad
currently in bmake, $(foo bar) is a legitimate reference to a variable named "foo bar"
-
RhodiumToad
so adding gmake-style functions would break that
-
meena
how do you declare such a variable?
-
RhodiumToad
indirectly
-
RhodiumToad
foo = bar baz $(foo) = quux
-
RhodiumToad
"... This allows almost arbitrary variable names, however names containing dollar, braces, parenthesis, or whitespace are really best avoided!" -- so sayeth the manpage
-
cdrmack
is there any way to print all default variables that make uses behind the scenes? there are simply too many options in the debug mode (-d) :P
-
cdrmack
GNU make has these in man but I see none for bmake
-
cdrmack
(going through -d A right now)
-
_xor
rwp: I was pretty sure exiting 0 on a signal wasn't something that was expecting to happen, but I just wanted to make sure.
-
_xor
Also, true and false being inverted in shell scripts is...annoying sometimes.
-
meena
shell scripting is unnecessarily hard
-
fancycade
I made a mostly working port of ee in zig:
git.sr.ht/~fancycade/eez
-
VimDiesel
Title: ~fancycade/eez - Zig port of ee - sourcehut git
-
meena
fancycade: cool
-
LxGHTNxNG
if I'm just bending strings I prefer Tcl
-
polyex
i did a make installworld installkernel and i can't rm the DESTDIR, even with sudo
-
polyex
i get operation not permitted errors
-
isley
some of the files will have flags set. probably schg, maybe some others. you can see this with ls -lo
-
isley
chflags noschg on the files should fix that up for you
-
polyex
ls -lo in lib/ says schg on them
-
RhodiumToad
schg is set on the most critical files, like libc and rtld
-
polyex
s in schg mean secure or system?
-
RhodiumToad
system
-
RhodiumToad
there's a uchg flag which is the user equivalent
-
polyex
wow cool
-
RhodiumToad
the owner of a file can set/clear uchg, but only superuser can set schg, and not even the superuser can clear schg if the securelevel has been raised
-
polyex
is it good practice to always wipe the build dir before the build step?
-
RhodiumToad
for building the source tree? no, not usually
-
polyex
no sorry not build dir, the destdir of installworld installkernel
-
polyex
isley ty that worked. it's kinda tedious going into each dir with schg flag files and setting noschg on each. to do it recursively i type sudo chflags noschg -R dir?
-
RhodiumToad
oh, the destdir of installworld/kernel should usually be cleaned out first, yes
-
RhodiumToad
chflags -R noschg dir
-
polyex
that worked great, tyvm
-
_xor
meena: Yes, it is.
-
_xor
meena: I've been using
github.com/go-task/task for a good while now and it's definitely been a net positive
-
VimDiesel
Title: GitHub - go-task/task: A task runner / simpler Make alternative written in Go
-
_xor
There's also just, which I used for a bit, and it's good too, but I preferred yaml (yeah, yeah, I know) over make file syntax.
-
meena
_xor: yaml is not an adequate language
-
meena
-
VimDiesel
Title: YAMLScript - metacpan.org
-
polyex
RhodiumToad how do you script a freebsd installworld installkernel? i have to chflags -R the DESTDIR then rm -rf it before clean the env but that has to be run as sudo. so do you put sudo ... lines into the script, or leave them out and remember to run the whole script with sudo like sudo myscript?
-
meena
-
VimDiesel
Title: The yaml document from hell
-
_xor
polyex: I generally check for uid=0 and if that doesn't work then I test sudo and see if it fails.
-
_xor
meena: I know too much about YAMLs shortcomings.
-
_xor
I just haven't had to deal with them too much...yet.
-
» _xor has it on his to-do list to look further into capsicum, casper, and mac
-
_xor
I don't want to have to rely on sudo when scripting stuff.
-
_xor
...and I'm definitely not going to setuid.
-
rwp
_xor, Regarding signals: A typical programing bug is to trap a signal and then exit incorrectly. Either using exit code 0 or not exiting with a signal.
-
rwp
Therefore if you are dealing with some locally constructed program from a friend I think it actually highly probably that signal handling is buggy with it.
-
Onepamopa
Hey guys... just had one of my machines stop responding to network... logged in via IPMI only to see a "ping: sendto: No buffer space available" ... Where do I start looking for the issue?
-
_xor
Yup, saw that in the man page and the table of the expected behavior per-signal.
-
rwp
_xor, The ultimate work on signal handling is this:
cons.org/cracauer/sigint.html
-
VimDiesel
Title: Proper handling of SIGINT/SIGQUIT
-
RhodiumToad
Onepamopa: netstat -m
-
rwp
Onepamopa, Memory use in top?
-
Onepamopa
RhodiumToad I'll add a few imgur screens here because ... ipmi
-
RhodiumToad
Onepamopa: most likely something has used up all the mbufs, which means either there aren't enough mbufs or mbuf clusters, or something is leaking networking memory
-
RhodiumToad
vmstat -z | grep mbuf might also have relevant info
-
Onepamopa
-
VimDiesel
Title: Screenshot by Lightshot
-
rwp
Do you already have trend monitoring set up such that you could look to see if something has happened before the event? Something like Munin or other?
-
Onepamopa
-
VimDiesel
Title: Screenshot by Lightshot
-
rwp
And of course if not then I suggest setting something up so that when this happens again there might be clues stored in the trend monitoring.
-
Onepamopa
influx + grafana working collecting data about network, firewall states, etc - no spikes - everything normal
-
Onepamopa
that's the first thing I've checked..
-
RhodiumToad
hm. no requests for mbufs denied or delayed
-
RhodiumToad
what OS version?
-
rwp
Hmm... Review the /var/log/messages log file and see if there is any clues logged there?
-
RhodiumToad
memory allocated to network doesn't seem too excessive.
-
Onepamopa
13.2-STABLE 13-n255439-0bccb454ae96
-
RhodiumToad
does ping still return the error?
-
Onepamopa
yeah...
-
Onepamopa
this is actually the 4th time it's happened
-
Onepamopa
roughly takes around 20 to 30 days ....
-
Onepamopa
now it's 46 days uptime ..
-
RhodiumToad
hm, I don't see that commit tag, do you have some local modifications in play?
-
Onepamopa
I've checked 4 times now and I don't see what could be causing this ...
-
Onepamopa
yes, but nothing related to memory
-
Onepamopa
just a small PF patch to allow me to keep the "added time" for IPs in the table when resetting counters
-
RhodiumToad
what's the branch point between your modifications and upstream?
-
Onepamopa
how do I check
-
rwp
Hmm... "swapinfo -m"??
-
Onepamopa
used: 0
-
rwp
Isn't that? freebsd-version -kru
-
Onepamopa
13.2-STABLE 3 times
-
RhodiumToad
rwp: this is networking memory it's complaining about, which is all wired, so swapinfo isn't relevant
-
rwp
I am not very practiced reading the network memory diagnostic data RhodiumToad has suggested by comparing those to my systems those all look very similar.
-
Onepamopa
rwp I already compared with another machine currently working... values are ~same ...
-
RhodiumToad
Onepamopa: git merge-base between your branch and origin/stable/13 ?
-
rwp
It was the 30-50 days of uptime causing problems. I have had systems where things leak memory and grow but everything seems okay until there just isn't enough resources. Looking for things that are squeezing the system. But none are found so...
-
Onepamopa
try 9bccb454ae96
-
Onepamopa
0 was a typo
-
RhodiumToad
aha.
-
RhodiumToad
ok, so this is -stable as of early March.
-
Onepamopa
So.... ifconfig ix0 down && ifconfig ix0 up .... ping is finally working
-
RhodiumToad
what type of NIC is in use?
-
Onepamopa
but .... what was the causae...
-
Onepamopa
intel 10gig one
-
RhodiumToad
ixgbe driver? the one in the tree?
-
Onepamopa
the default one
-
rwp
RhodiumToad, How do you feel about "netstat -na | grep -e CLOSE -e FIN | wc -l" for looking for problems?
-
kyonsalt
Onepamopa: I ever met this "no buffer space avaiable". It seems that your default route changed if you have 2+ netcards.
-
RhodiumToad
I feel it's not relevant here
-
rwp
I have had systems be attacked by botnets which kept network memory overwhelmed holding many resources in close wait and fin wait states.
-
rwp
Onepamopa, Is this system on a LAN where it is relatively safe? Or on the Internet WAN where it must fend off Internet hostilities?
-
Onepamopa
kyonsalt It's a dual port NIC but the 2nd port has no link and I've set it "down" manually on boot.
-
RhodiumToad
there's no indication here that network memory in total was overwhelmed
-
Onepamopa
it's in OVH
-
RhodiumToad
notice the number of mbufs and clusters in use was not excessive and there were no counts for mbuf requests delayed or denied.
-
Onepamopa
and no intr queue drops
-
RhodiumToad
that bouncing the interface fixes it suggests that the problem was it failing to enqueue packets to the hardware
-
RhodiumToad
the driver itself doesn't seem to mention ENOBUFS, but it's an iflib driver and iflib can return that in some cases.
-
Onepamopa
you're suggesting a driver issue or hardware failure ?
-
RhodiumToad
there's some changes to ixgbe and iflib since March, but nothing that seems obviously relevant
-
RhodiumToad
these days distinguishing between "driver bug" and "hardware bug" can be rather ... vague
-
rwp
I am suspicious it might be a high network load caused by external agents. A botnet for example.
-
RhodiumToad
I've not used this hardware myself, so I don't know whether it's worth trying the port drivers
-
rwp
Bringing the interface down will flush all internal resources, and then up will reestablish connectivity. And the network disruption _might_ cause abusive attackers to disconnect and move to the next IP address.
-
rwp
Since the Internet packet lifetime is 2 minutes I have in the past downed interfaces for 2 minutes to force all network connectivity to fail off as a temporary brute force hack to nudge attacking botnets to move on to another IP address. It's a hack though I admit.
-
Onepamopa
rwp let me show you ...
prnt.sc/dyAOM_Yui0yW
-
VimDiesel
Title: Screenshot by Lightshot
-
Onepamopa
does that look like a ddos to you? because it doesn't to me...
-
Onepamopa
this is the past 3 hours, 1 second resolution
-
Onepamopa
so.. let's get back to figuring what's causing this...
-
rwp
Very good that you have trend data! Does not look like an attack to me from that data. It looks like everything is okay. Right up until it isn't. And then it's wedged.
-
Onepamopa
exactly
-
rwp
At least with it back on the net you can log in using ssh instead of needing ipmi and be a little more comfortable.
-
rwp
Since you haven't found a specific problem I would fish further out and look through all of the logs of anything this system is doing. If it is Nginx then I would look through those logs looking for clues. And so on for whatever it does.
-
Onepamopa
I've already ssh'd in and even placed some traffic back on it
-
Onepamopa
rwp I've already done that and haven't found anything to indicate even remotely of an issue
-
Onepamopa
which is why, even though I'm super tired and sleepy - I went here to get some help in figuring this..
-
Onepamopa
because, as I said.. it's the 4th maybe even 5th time this is happening, and each time I'm pulling the latest src, compiling kernel and world, installing, doing a fresh reboot and placing traffic back
-
rwp
Tricky problem! I always hate it when there are few clues to what might be the problem.
-
Onepamopa
and 30-40 days after that - whoa - it happens again
-
rwp
It happens to this one specific system? Or it happens to any of your systems?
-
Onepamopa
it's happened on multiple systems
-
RhodiumToad
all with this same nic?
-
Onepamopa
most often on this one because it's most loaded
-
Onepamopa
yes
-
Onepamopa
all ryzen 9s with 10gig nic
-
Onepamopa
in different datacenters
-
rwp
I would have a hard time thinking it is a hardware failure if it is happening on multiple different hardware systems. But could still be a driver issue.
-
Onepamopa
could be but ... who can tell for sure ?
-
Onepamopa
I certainly can't ..
-
rwp
After search the wisdom of the web for this problem there are an amazing number of hits on people reporting the same problem and they mostly say ifconfig down and then up resets them back to working and then the trail ends. I assume it is a temporary reset and not a permanent fix though.
-
Onepamopa
so... if any of the devs lurk around anonymously... make yourselves known :)
-
rwp
JFTR but are these systems running a pf or ipfw firewall? Just gathering data...
-
meena
rwp: 19:18 <Onepamopa> just a small PF patch to allow me to keep the "added time" for IPs in the table when resetting counters
-
rwp
Thanks meena! I had not seen that in the scrollback.
-
meena
it only registered peripherally and tingled my spidey sense, because I believe to remember seeing a bug or thread about memory leaks in pf
-
meena
but i can't look it up now, really
-
rwp
Onepamopa, Since you have already taken the interface down/up reseting things and it is late time in your timezone and you say you are exhausted if it were me I would be inclined to sleep now and then hit it fresh with a clear head tomorrow. Since probably that reset restarts the 30-40 day clock I would expect things will continue through the night into morning okay. Since you have explored everything you/we can think of at this time.
-
Onepamopa
meena the patch is basically a single if () to not re-set the time of the IP when table counters get flushed
-
Onepamopa
If you think that can cause a memleak ... it would've happened a lot sooner I think.. not after 30-40 days
-
RhodiumToad
I don't think it's a memory leak as such
-
meena
Onepamopa: i didn't mean your patch is causing that
-
Onepamopa
oh..
-
Onepamopa
I'm really out of ideas.. the only thing I can do is pull the latest, rebuild all and hope it won't happen again
-
Onepamopa
but considering I've been doing that 4-5 times now ...
-
RhodiumToad
have you tried the port drivers?
-
Onepamopa
no
-
Onepamopa
what do I try ?
-
Onepamopa
compile ixgbe driver from ports instead of using the one in the kernel ?
-
RhodiumToad
take a look at net/intel-ix-kmod in ports
-
RhodiumToad
check the descriptions for whether your card is supported
-
RhodiumToad
I haven't used this hardware so I have no personal experience with it
-
Onepamopa
hm, kldstat shows its using if_igb
-
RhodiumToad
what does it show exactly?
-
Onepamopa
5 1 0xffffffff8215c000 74f30 if_igb.ko
-
Onepamopa
link at 1g media: Ethernet autoselect (1000baseT <full-duplex>)
-
RhodiumToad
what does pciconf -lv show for the device?
-
Onepamopa
Ethernet Controller X550
-
RhodiumToad
the whole output pleaser
-
RhodiumToad
s/r$//
-
Onepamopa
ix0@pci0:1:0:0: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x1563 subvendor=0x1849 subdevice=0x1563
-
Onepamopa
vendor = 'Intel Corporation'
-
Onepamopa
device = 'Ethernet Controller X550'
-
Onepamopa
class = network
-
Onepamopa
subclass = ethernet
-
RhodiumToad
do you have anything explicitly loading an if_igb? e.g. in loader.conf or kld_list in rc.conf
-
Onepamopa
yes
-
Onepamopa
@ loader
-
Onepamopa
it's from an older server, i'll remove it
-
RhodiumToad
that's the em driver, which shouldn't be applicable to an x550 card
-
Onepamopa
Id Refs Address Size Name
-
Onepamopa
1 65 0xffffffff80200000 1f42b38 kernel
-
Onepamopa
2 1 0xffffffff82143000 11ab8 ipmi.ko
-
Onepamopa
3 3 0xffffffff82155000 3cb0 smbus.ko
-
Onepamopa
4 1 0xffffffff82159000 2870 accf_data.ko
-
Onepamopa
5 1 0xffffffff8215c000 74f30 if_igb.ko
-
Onepamopa
6 1 0xffffffff821d2000 716f8 pf.ko
-
Onepamopa
7 1 0xffffffff82244000 ab70 opensolaris.ko
-
Onepamopa
8 1 0xffffffff8224f000 2e88 accf_http.ko
-
Onepamopa
9 1 0xffffffff826e5000 3378 acpi_wmi.ko
-
Onepamopa
10 1 0xffffffff826e9000 3218 intpm.ko
-
Onepamopa
11 1 0xffffffff826ed000 3380 if_urndis.ko
-
Onepamopa
12 1 0xffffffff826f1000 3178 uether.ko
-
Onepamopa
13 1 0xffffffff826f5000 3340 uhid.ko
-
Onepamopa
14 1 0xffffffff826f9000 4350 ums.ko
-
Onepamopa
15 1 0xffffffff826fe000 3380 usbhid.ko
-
Onepamopa
16 1 0xffffffff82702000 32b0 hidbus.ko
-
Onepamopa
17 1 0xffffffff82706000 54b8 if_gre.ko
-
RhodiumToad
paste site!
-
RhodiumToad
no if_ix there?
-
Onepamopa
-
VimDiesel
Title: dpaste/Btpk (Plain Text)
-
Onepamopa
nop...
-
RhodiumToad
does kldstat -v show if_ix loaded as part of kernel?
-
Onepamopa
-
VimDiesel
Title: dpaste/cpE0 (Plain Text)
-
RhodiumToad
ok, pci/ix is it
-
RhodiumToad
are you using GENERIC or a custom kernel config?
-
Onepamopa
generic
-
RhodiumToad
device ix is in the GENERIC config, so that's ok
-
RhodiumToad
I don't _think_ loading igb will have been doing any harm, it just shouldn't be attaching to anything
-
RhodiumToad
certainly not necessary though.
-
Onepamopa
I've already removed it from loader
-
Onepamopa
so, you suggest I build the ix driver from ports and manually load it on boot?
-
RhodiumToad
I don't recommend that you do it or don't do it, it's just one option you might try
-
Onepamopa
is that driver newer than the one in the kernel?
-
RhodiumToad
I don't know, you could check that. All I know is that it exists
-
Onepamopa
hm, the kernel ix driver is char ixgbe_driver_version[] = "4.0.1-k"; the port is 3.3.10 ?
-
polyex
is there such a thing in a shell script as getting a tmp dir generated that i can use then delete after script is done?
-
VVD
polyex, mktemp(1)?
-
polyex
wtf it's perfect!!!
-
BillyJoeBob
Hello, all.
-
polyex
in a shell script being run by sudo i don't suppose there's any way to get the $HOME of the user calling sudo myscript?
-
polyex
heya
-
polyex
when i make a scripted bsdinstall out of an extracted iso, i put my custom.txz distribution in usr/freebsd-dist. but trying to do the same thing from src, when i build and installworld installkernel somewhere, there's no freebsd-dist dir. so where do i put my custom.txz?
-
dh
polyex: sudo by default exports SUDO_xxx environment variables to executed program, for example SUDO_USER which you can use to determine the home directory of the caller
-
polyex
like some command like mktemp that i can call with $SUDO_USER to retrieve its $HOME?
-
satanist
getent passwd "$SUDO_USER" |cut -d ':' -f 6
-
polyex
weird but cool ty
-
polyex
how do i do a conditional check in bash? if ["$(id -u)" -ne 0]; then... doesn't run when i execute it as non-superuser. how can i make it work right?
-
polyex
wow i just needed spaces between the [] !
-
rwp
The [ square bracket is a built-in alias for the "test" operator. if test"$(id -u)" -ne 0 would not work either and also needs a space.
-
polyex
oh wow
-
rwp
Try "man [" for example. The "[" is just a command but happens to be builtin for performance reasons. But it must be treated as if it were an external for all purposes of quoting and passing arguments.
-
rwp
Meanwhile... | & ; ( ) < > are metacharacters and special to the shell individually and don't need spaces. They separate words. If used plainly they must be quoted.
-
rwp
Meanwhile... ! { } are shell keywords. Used for negation and lists. Being a keyword they need spaces. So { echo foo ;} is a list. But {} is not { nor } but {} and does not need quoting. This confuses people routinely when using find's -exec echo {} + sequence and I often see people quoting it like "{}" "+" which is unnecessary extra superfluous and redundant quoting.
-
polyex
i kinda don't like symbols being so different
-
polyex
am i alone thinking that's mentally taxing?
-
rwp
It all evolved that way back in the 1970's and changing it after all of these years would break a lot of stuff. Best not to stir the pot.