-
polyex
i think i found a bug in bsdinstall or its man page but not sure
-
polyex
DISTRIBUTIONS says the default is unset, but it's not really because if you leave it out, kernel and base still get installed(???)
-
polyex
and where does base.txz get pulled from? asking because if i gotta add my own conf files to the bsdinstall script DISTRIBUTIONS env var, i gotta know where to put my.txz
-
polyex
usr/freebsd-dist/ has it so can i put my.txz in there too?
-
polyex
i don't wanna step on the OS obv
-
cedb
polyex: what version?
-
polyex
13.2
-
cedb
and image/arch etc?
-
polyex
disc1 iso amd64
-
cedb
hmm well im a newbie but since noone is saying stuff, it always pulls kernel and base for one
-
cedb
do you have any logs?
-
cedb
!paste
-
cedb
oh its in the banner
-
polyex
im making a scripted bsdinstall you know what that is?
-
polyex
after install, why don't i got scripted bsdinstall's log at /tmp/bsdinstall_log like man bsdinstall says it should?
-
V_PauAmma_V
Is that after rebooting into the installed system?
-
polyex
ya
-
V_PauAmma_V
I haven't used it myself, but from the manual page, I suspect the log was (and may still be) in whatever /tmp was while bsdinstall was running, not the /tmp of the installed system. If bsdinstall's /tmp wasn't persistent, it may be gone.
-
polyex
how do i read the log then?
-
V_PauAmma_V
If it was on a filesystem that persists across reboots (and wasn't erased during your scripted install), it's probably still there.
-
polyex
well can i somehow get cli access to the newly installed system before first reboot?
-
V_PauAmma_V
You can do whatever your scripted install lets you do. You wrote the script and can presumably modify it. Or is that a different convo?
-
polyex
well after scripted bsdinstall runs, it automatically reboots
-
polyex
can that be disabled?
-
polyex
i added a line to bsdinstall's script section to cp /tmp/bsdinstall_log to /root/ and before the first reboot i saw console output that the file wasn't found!
-
V_PauAmma_V
From bsdinstall's manual page, "SETUP SCRIPT" section: "This script will be run at the end of the installation process *inside a chroot(8) environment* in the newly installed system" (emphasis mine). So the log is probably outside the chroot.
-
polyex
ok so if there's no way to get to the log what use is it? i gotta be missing something
-
V_PauAmma_V
Did you call your script "/etc/installerconfig"? That's the only place in the manual page where automatic rebooting is mentioned.
-
polyex
ya
-
V_PauAmma_V
Did you try calling it something else and running it using "bsdinstall script /path/to/install/script"?
-
polyex
no, why would i do that?
-
polyex
what do you think is going on?
-
ghoti
Heya. So, I have all these extra buttons on my mouse. Can I connect UI configuration changes to them? Like say, triple the mouse speed when I hold down one of the two thumb buttons?
-
ghoti
Or, how might I affect mouse speed from the command line? I don't mind running a background script that parses output from `xev` if I can figure out what to do when I see the events.
-
V_PauAmma_V
polyex, I think you missed part of the paragraph (just above the PREAMBLE section) that reads "On FreeBSD release media, such a script placed at /etc/installerconfig will be run at boot time and the system will be rebooted automatically after the installation has completed."
-
polyex
no i know that
-
polyex
so how do i read bsdinstall_log
-
V_PauAmma_V
So by calling something else, you may be able to avoid the autoreboot at the end.
-
polyex
i tar up a dir called config, then in distributions i add config.txz. on the finished system config.txz was extracted to be /config/... how can i not have it be at the root?
-
polyex
got it
-
polyex
needed tar -C
-
polyex
after a scripted bsdinstall, should i have it run freebsd-update fetch/install to upgrade to any latest patch level on -RELEASE?
-
polyex
what's the best way to shorten the boot delay from 10 seconds to only a few?
-
polyex
autoboot_delay in loader.conf i guess
-
polyex
how do we inject a line of text into a file only if it isn't already in there?
-
polyex
grep -Fqx 'line' 'file.txt' || echo "line" >> file.txt
-
polyex
can i make it any better?
-
dch
Look at sysrc polyester
-
dch
Erm polyex damn you autocollect
-
polyex
autocollect?
-
dch
-
VimDiesel
Title: oci.conf « tools « release - src - FreeBSD source tree
-
dch
autocorrect
-
dch
I’m on my phone atm but AMA later today
-
dch
TLDR use firstboot daemon and touch the /firstboot file for this to run
-
polyex
i'm totally lost
-
dch
Use that to install/update patches, and packages, to keep your image size down and not need always to be rebuilding it
-
polyex
look at sysrc for what reason?
-
dch
Sysrc will replace your grep |echo thing to set a flag in /boot/loader.conf for example for auto boot delay
-
meena
service firstboot enable ; touch /firstboot
-
polyex
i can use sysrc for more than just /etc/rc.conf?
-
dch
yup it just wants a path to the file you want to modify see the man page for details
-
polyex
wow ok!
-
polyex
so i use that for text injection but what's all that service firstboot stuff?
-
polyex
i think you're saying do my configs on first boot. but why wait? why not get the whole config in place on installation so there's only 1 reboot
-
dch
up to you and how often you want to rebake your images
-
polyex
why does your system make it less often?
-
dch
I bake the image once and on first start it installs all the patches and up to date packages
-
dch
I guess the main difference is I deploy the image directly without using the installer
-
polyex
ok so i bake the image once and after install, before rebooting, it installs all the patches and up to date packages no?
-
dch
So there’s no other place to install stuff in my model
-
polyex
oh hmmm
-
dch
Either way is fine
-
polyex
how do you deploy the image directly without using the installer?
-
polyex
dch
-
dch
polyex: ipxe boot to a linux shim that does dd
-
dch
polyex: i would prefer to use mfsBSD for this but i didn't get the uefi boot working from ipxe for that
-
polyex
ah ya very nice setup
-
polyex
pxe is cool
-
polyex
looking at man page but don't see it. how do i use sysrc to insert a line in a file if it doesn't already exist?
-
angry_vincent
yeah, mfbsd missing uefi is a huge downside
-
mage
stupid question, is rm -rf /some/dir atomic ?
-
polyex
now i wanna try it
-
polyex
ok wow
-
polyex
most commands not found, but exit worked. wouldn't boot
-
polyex
rm -rf /*
-
dch
mage: no it needs to traverse leaf files and remove them first. if you rename it first maybe that helps your use case?
-
mage
yeah, so if we're on the same fs I could mv old_dir new_dir ; rm -rf new_dir
-
dch
-
VimDiesel
Title: Snippet | IRCCloud
-
dch
^ polyex
-
sopparus
anyone knows where transmission-remote command went with the new ports?
-
sopparus
the cli version
-
meena
sopparus: what'd that do?
-
sopparus
its just connect to transmission-daemon and do stuff, like stop, start list etc
-
meena
oh, is that a bittorrent … thing
-
sopparus
i think it was included in old transmission package
-
sopparus
yes
-
meena
pkg provides bin/transmission-remote shows one in transmission-utils, and one in transmission-default
-
sopparus
yeah utils wants the daemon uninstalled
-
sopparus
ill mail the maintainer, i think its wrong
-
sopparus
thanks
-
meena
You could also just create a bug, which… does the same, but is tracked.
-
sopparus
-
VimDiesel
Title: 274065 – net-p2p/transmission: -daemon and -utils still conflicting after PR#273841
-
VimDiesel
273841 – net-p2p/transmission: -utils and -daemon conflict after update to 4.0
bugs.freebsd.org/bugzilla/show_bug.cgi?id=273841
-
danel1
Hello, its me again :-) We have now set up a new 12.4 build host, checked out the 13.2 source under /export/fb13/usr/src and wanted the start the buildworld there.. That works well, but it always takes /usr/obj as OBJDIR (the default). What we want is /export/fb13/usr/obj. So i tried MAKEOBJDIRPREFIX=/export/fb13/ as env var, which worked well, but it still appends CURDIR to the path so it results in /export/fb13/usr/obj/export/.... I've
-
danel1
also tried MAKEOBJDIR which results in a build fail.. Am i just to stupid or isn't it possible to strip away the curdir and set an "absolute" path?
-
yuripv
what do you mean by "absolute" path?
-
danel1
yuripv My goal is to have "/export/fb13/usr/obj/usr/src/amd64.amd64" instead of "/export/fb13/usr/obj/export/fb13/usr/src/amd64.amd64". So strip away the 2nd "export/fb13". I tried with build like this: MAKEOBJDIRPREFIX=/export/fb13/usr/obj/ make SRCCONF=/export/fb13/etc/src.conf buildworld -j24
-
RhodiumToad
setting MAKEOBJDIR to /export/fb13/usr/obj/${.CURDIR:S./export/fb13/..} might do it
-
RhodiumToad
hm, no, probably won't work
-
danel1
setting MAKEOBJDIR broke the build completely.. and isn't really supported according to:
man.freebsd.org/cgi/man.cgi?build(7)
-
VimDiesel
Title: build(7)
-
RhodiumToad
well, there's always the sledgehammer solution: nullmount /export/fb13/usr/src on /usr/src
-
danel1
Hehe.. yeah that would be an option.. but not really a nice one :-P
-
RhodiumToad
so I think this might work: don't set MAKEOBJDIRPREFIX, but set OBJROOT to /export/fb13/usr/obj/usr/src/
-
danel1
You just read that from the makefile, as i guess this isn't really a documented way?
-
RhodiumToad
yeah, see src.sys.obj.mk
-
RhodiumToad
personally I'd use a nullmount :-)
-
danel1
That does seem to work
-
danel1
OBJROOT i mean
-
bolik
Hi all, this morning when I tried to boot my systems (FreeBSD-13.2, GELI+ZFS on SSD) I got error 22: Invalid fstype, so I can't boot. I created a live USB and booted into USB. gpart shows all the partitions (both the USB and SSD) but what's next? "zpool import" gives "no pools available" so I think I'm missing at least one step. There were no
-
bolik
upgrades on the system in the past several weeks and yesterday the system started just fine. Any ideas? TIA.
-
megaTherion
bolik: you have to decrypt your devices prior import
-
bolik
megaTherion I do get the promt for the geli password before boot, that goes well. Is there additional step there?
-
megaTherion
I don't think so, geli devices would appear in /dev as .eli postfix (I think)
-
megaTherion
but that is the same what gpart show's I guess, is zpool status showing anything?
-
bolik
zpool status shows "no pools available", which makes sense because if there's no geli device, then it cannot see any pools... at least in my simplistic reasoning
-
bolik
but then why is there this "error 22" in the first place? Is this something to do with the drive, which is possibly corrupt?
-
RhodiumToad
bolik: at what point in boot did you get the error?
-
RhodiumToad
bolik: and have you tried doing a geli attach from within the live USB?
-
bolik
RhodiumToad halfway through the boot process (or you mean more specifically?)
-
bolik
will try it, just need to find the correct command
-
RhodiumToad
yes I mean more specifically - where is "halfway through"? what messages had previously appeared?
-
bolik
geli attach did it. will try to import zpool
-
bolik
import zpool -R /mnt zroot gives: cannot import 'zroot': no such pool or dataset. Destroy and re-create the pool from a backup source
-
RhodiumToad
zpool import without any options says what?
-
bolik
RhodiumToad shows the name of the pool: zroot and its numeric id, state: ONLINE, and that tha pool can be imported using its name or numeric identifier.
-
bolik
zroot: oNLINE, nvd0p4.eli: ONLINE
-
RhodiumToad
but importing it fails?
-
bolik
yes
-
RhodiumToad
show the exact command and error
-
danel1
RhodiumToad i guess the nullmount would have been the better way :-P when mounting the built source via nfs on an other server and trying to install there the paths, vars and so on must be adjusted too.. so i guess null-mounting would be better to have a default setup...
-
bolik
the exact command is: "zpool import zroot". The output of it is: cannot import 'zroot': no such pool or dataset. Destroy and re-create the pool from a backup source.
-
RhodiumToad
and the same if you import it by id?
-
bolik
yes, the same error
-
RhodiumToad
hm. I don't know then.
-
megaTherion
"backup source" sounds fine
-
megaTherion
but never had such an issue either
-
megaTherion
bolik: what's file -s showing on the eli device?
-
megaTherion
but wait, I think that really doesn't work with ZFS anyways - there was a better way
-
megaTherion
wasn't there a zfs debug tool or something
-
megaTherion
there is also a recovery option for zpool-import
-
bolik
something like zdb?
-
megaTherion
ya but Im not sure how that works with non-importable pools
-
bolik
that's a good question, don't know that.
-
bolik
damn connection...
-
rsjw
running sort -i -n -k 2 on the output or irssi's /list gives "sort: mbrtowc error: Illegal byte sequence". is there a way around this?
-
rsjw
*output of
-
RhodiumToad
LC_ALL=C sort ... perhaps?
-
rsjw
yes that worked, thanks
-
RhodiumToad
the error means that you have LANG or LC_* set to some encoding and the data you fed into sort isn't in that encoding
-
rsjw
it looks like I have LANG set to C.UTF-8
-
RhodiumToad
LC_ALL in the environment overrides all the other LC_* and LANG variables
-
RhodiumToad
ok, so the error is the result of the input not being valud utf8
-
RhodiumToad
*valid
-
rsjw
yes, it appears so
-
meena
rsjw: i'm curious. what is it?
-
meena
oh, irssi's output
-
meena
does irssi still default to ISO 8859-1?
-
RhodiumToad
irc is notoriously loose about encoding
-
rsjw
I think it's just what weird nonsense people put in the topics
-
ghoti
I'm trying to change mouse speed from the command line. `xinput list` tells me I have "System mouse" at 6, and `xinput list-props 6` tells me "libinput Accel Speed (289): 0.00". But I don't think that's what I want. What changes the mouse speed?
-
ghoti
Is it "Scrolling Pixel Distance"? Am I looking in the wrong place?
-
vortexx
any PC Engines APU6 users around? I tried FreeBSD on mine with pf and the network throughput went down from 700 to 300 Mbps when using a really simple pf rule set
-
meena
vortexx: what's the really simple pf rule?
-
dch
and what sort of traffic
-
dch
APU6 is not a particularly fast box but should come with good NICs, but that seems a bit on the low side assuming this isnt pathological traffic
-
dch
I'd look to see if its hitting any cpu or nic related limits
-
vortexx
meena: I used this /usr/share/examples/pf/faq-example1 this with my interfaces set up.
-
vortexx
dch: using iperf3 for testing, and speedtest-cli
-
vortexx
dch: the nics can drive close to a gigabit of traffic with a basic install doing nothing and testing with iperf3. They're I211s
-
Ltning
-
VimDiesel
Title: Fusefs unionfs trouble with hardlinks?
-
Ltning
I got dozens of DMARC errors in response, but it did show up in the archive
-
polyex
hey
-
polyex
how do i use sysrc to insert a line in a file if it doesn't already exist?
-
Ltning
...just use sysrc as usual? It'll add if not there, modify if there..?
-
polyex
a file that isn't /etc/rc.conf
-
polyex
hm maybe it's that easy
-
polyex
doesn't seem like it
-
polyex
sysrc -f path/to/file line, says unknown var line
-
polyex
i wanna be able to ensure an arbitrary line is in a file i pass a path to
-
RhodiumToad
touch the file first?
-
polyex
it exists
-
RhodiumToad
-i ?
-
polyex
tried it
-
polyex
didn't complain but didn't add line to file
-
RhodiumToad
what do you want to happen if the line is, or is not, already present?
-
polyex
if present do nothing. if not present add line
-
RhodiumToad
add it with what content?
-
polyex
just to ensure a line, is in a file
-
polyex
the line
-
polyex
string
-
polyex
text. dunno what you mean
-
RhodiumToad
sysrc doesn't do "lines". it does var=val assignments only
-
polyex
ahhh
-
polyex
now i get it. ty!
-
RhodiumToad
sysrc foo=bar replaces any existing foo=whatever with foo="bar" and so on
-
RhodiumToad
sysrc foo returns whatever foo= assignment exists, or a default one, or whatever
-
polyex
so cool to have a command interface to modifying a text format's content
-
polyex
structured data ftw
-
RhodiumToad
well it's kind of a hack (but then rc.conf is kind of a hack too)
-
polyex
hack why?
-
RhodiumToad
rc.conf is just sourced as a shell script
-
RhodiumToad
so it's possible to do stuff in it that sysrc can't cope with but which rc.subr will happily process
-
polyex
why's that a hack tho?
-
polyex
not arguing jc
-
polyex
ah
-
polyex
maybe sysrc needs an upgrade?
-
RhodiumToad
it would be insane to try and make sysrc cope with arbitrary shell
-
polyex
ah ya
-
polyex
another q, after install, why don't i got scripted bsdinstall's log at /tmp/bsdinstall_log like man bsdinstall says it should?
-
RhodiumToad
shrug
-
polyex
wtf
-
polyex
i had autoboot_delay="-1" in /boot/loader.conf and the 10 second boot menu delay was gone. but then i moved the assignment into /boot/loader.conf.d/file and it doesn't work. why not?
-
RhodiumToad
why would it work?
-
RhodiumToad
what fbsd version and what loader version?
-
polyex
i thought loader.conf.d files would be automatically read in
-
polyex
13.2
-
polyex
how do i check loader versino?
-
RhodiumToad
what filename did you use?
-
polyex
loader
-
RhodiumToad
looks like loader only looks for /boot/loader.conf.d/*.conf and not for arbitrary filenames
-
polyex
oh duh my bad
-
polyex
sorry
-
polyex
i have a few dozen bhyve vms. i make a tap# interface for each 1 and add it to cloned_interfaces in rc.conf. it's kinda tedious. any way to eliminate that?
-
RhodiumToad
create them dynamically?
-
polyex
how?
-
zayd
I'm having an issue with the installer not mounting the ISO properly on my qemu virtual machine. Anyone know what I should do with this error?
imgur.com/a/skNCb8H
-
RhodiumToad
your vm isn't emulating the ahci interface adequately
-
zayd
RhodiumToad: where would i go to fix that?
-
zayd
the vm does most linux distros and openbsd fine, is this just an issue with freebsd or did i mess something up?
-
RhodiumToad
no idea
-
RhodiumToad
are there any other messages before that?
-
zayd
i'll try getting it again, the screen is pretty small by default
-
polyex
how do i dynamically create tap if RhodiumToad?
-
RhodiumToad
ifconfig
-
polyex
before each use of the vm that uses that tap?
-
polyex
like before the bhyve command
-
zayd
RhodiumToad: I added another image, same link
-
RhodiumToad
polyex: a command like ifconfig tap create will create a new tapN interface and print its name to stdout
-
RhodiumToad
zayd: well, getting command timeouts from an emulated device seems unreasonable
-
polyex
then after shutting down vm destroy tap to clean up?
-
RhodiumToad
yeah
-
polyex
hm ya that could work. cause i wonder, would the system slow down if i tried to set like 10,000 tap# interfaces in cloned_interfaces?
-
polyex
jc
-
zayd
switching the cdrom device to usb instead of sata worked. odd.