-
rwp
wheel group did not exist on HP-UX either.
-
qtc`
I am primary a Linux user, I’ve been trying to setup a “service” using rc.d but I’m having issues.
-
qtc`
I currently cannot figure out why my daemon won’t work, the issue is with `-u syncserver`
-
qtc`
Command: `/usr/sbin/daemon -u syncserver -c -f /usr/local/bin/syncserver –config=/etc/syncserver.toml`
-
qtc`
User created: `pw user add syncserver -d /usr/home/syncserver -s /bin/csh -m`
-
debdrup
Is there a reason you're not using (name)_user as defined in rc.conf(5)?
-
debdrup
Or are you using it? Because -u requires superuser privileges.
-
qtc`
I'm mainly referenceing other rc.d scripts, and "Practical rc.d scripting in BSD"
-
qtc`
didnt see (name)_user I'll need to look into that
-
daemon
mason, paul.webster@dev-11 ~ $ id root
-
daemon
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),26(tape),27(video)
-
daemon
ah you are correct
-
daemon
I just assumed it was across the board
-
debdrup
The article doesn't cover everything that's possible to do with rc.d scripting - that's laid out in rc.conf(5).
-
qtc`
thanks debdrup I already had the user and group setup correctly, but didn't realise that was a setting rc.d would use itself
-
qtc`
I finally got my service to start, but I have an issue that "needs" to be fixed. My service needs python with specific packages installed (via pip) how would I go about doing this?
-
qtc`
For debugging (just to get the service running), I did a simple "pip install" as root I know this is "bad",
-
qtc`
As a "user" I was using a `python3 -m venv venv` with a `export PATH="/usr/home/syncserver/venv/bin:$PATH"`, which worked great, but even though I exported the path it didn't work in rc.d
-
vishwin
that prohibition will soon be enforced
-
vishwin
(there is a PEP about it that we haven't implemented yet)
-
alexandru_goia
greetings
-
alexandru_goia
I have a question on FreeBSD kernel internals, more precisely signal subsystem
-
alexandru_goia
is someone here, please ? :-)
-
rtprio
alexandru_goia: we are here; just ask
-
alexandru_goia
have a look on this
-
alexandru_goia
a Linux implementation
-
alexandru_goia
-
VimDiesel`
Title: Angel
-
alexandru_goia
my purpose is two-fold :
-
alexandru_goia
yes, angel() :-)
-
alexandru_goia
a) write a simple but non-trivial FreeBSD system call
-
alexandru_goia
b) re-implement on FreeBSD the Linux/Unix idea
-
alexandru_goia
i modified some code, in /usr/src/sys/kern/kern_sig.c , but it doesn't work
-
alexandru_goia
only if I send killsig(getpid(), SIGKILL); to my process - which calls first syscall(576); that is sys_angel()
-
alexandru_goia
it works
-
alexandru_goia
but if I send SIGKILL from external source, then it kills my process
-
alexandru_goia
do you have some expertise in FreeBSD sources ? more precisely signals ?
-
rtprio
while i applaud your approach to stop using systemd, i'm not sure this is the solution i'd pick
-
alexandru_goia
rtprio: talking to me ?
-
rtprio
yes.
-
rtprio
curious about your changes to kern_sig.c but i don't know enough to tell you whats happening
-
alexandru_goia
int kern_sigaction()
-
alexandru_goia
int sigqueue_add()
-
alexandru_goia
i touched them briefly
-
rtprio
basically removed extra checks for SIGKILL so thy're not uncatchable?
-
rtprio
because there's a lot of them in that file
-
alexandru_goia
I want to find in the code where SIGKILL and SIGSTOP is taken into account (UNIX dogma says that they cannot be masked, caught, ignored, blocked)
-
alexandru_goia
as receiving signals
-
rtprio
-
VimDiesel`
Title: freebsd-src/kern_sig.c at main · freebsd/freebsd-src · GitHub
-
alexandru_goia
I think kern_sigaction() is the function that *sends* the signals, including SIGKILL SIGSTOP
-
alexandru_goia
but i am not sure
-
alexandru_goia
maybe, working on kill(2) ?
-
alexandru_goia
and killpg(2) ?
-
alexandru_goia
or using curproc ?
-
alexandru_goia
with or without PROC_LOCK( )
-
alexandru_goia
in Linux we have for the current process, the pointer struct task_struct *current;
-
alexandru_goia
in FreeBSD we have both struct thread; struct proc; and curproc and curthread
-
alexandru_goia
I don't quite understand the threads system in FreeBSD...
-
rtprio
i donno man, hang around; maybe someone will answer when they wake up
-
kevans
hmm, they left
-
kevans
kern_* is conventionally the implementation of a syscall by the same name (it's actually, e.g., sys_sigaction(), but we commonly then call into kern_*() for details shared between different ABIs)
-
kevans
wiki.freebsd.org/AddingSyscalls has some good information in the area
-
VimDiesel`
Title: AddingSyscalls - FreeBSD Wiki
-
kevans
including a link to a presentation by Brooks
-
eoli3n
Hi
-
eoli3n
I just discovered that my snapshots for a really important dataset seems empty
-
eoli3n
-
eoli3n
why can't I check zfs snapshot content with .zfs ?
-
dch
eoli3n: the .zfs directory can be disabled by default
-
eoli3n
but I didn't
-
eoli3n
it seems that my data are not written on the dataset
-
dch
eoli3n: paste that `zfs get all zroot/encrypted/sync | grep snap`
-
dch
eoli3n: do you have the encryption key loaded for this dataset?
-
eoli3n
-
eoli3n
yes
-
eoli3n
i do
-
eoli3n
the problem is not here
-
dch
eoli3n: I'm not very familiar with that but that would be a good reason for not showing the content of datasets I guess
-
eoli3n
even before the snapshot problem it seems that i'm not writting on the dataset
-
eoli3n
that dir is mounted in a bastille jails
-
dch
eoli3n: so yes I concur there's no data in the snaps
-
dch
embiggen/usr/home/dch usedbysnapshots 87.3G -
-
dch
embiggen/usr/home/dch snapshots_changed Wed Feb 22 10:49:01 2023 local
-
dch
these 2 properties should be filled
-
eoli3n
-
eoli3n
before snapshot problem, i need to solve "where are my datas" :)
-
dch
eoli3n: what happens if you manually create a snapshot?
-
eoli3n
as said 3 times
-
eoli3n
^
-
eoli3n
not a snapshot problem
-
eoli3n
no data in the dataset
-
eoli3n
zroot/encrypted/sync 200K 23.8G 200K /data/zfs/sync
-
eoli3n
empty dataset
-
eoli3n
but it is mounted
-
dch
so this is nothing to do with zfs and everything to do with syncthing
-
eoli3n
i guess that bastille does something wrong
-
dch
is there any data there at all?
-
eoli3n
no problem with syncthing
-
eoli3n
there are datas
-
eoli3n
ls -> camera/docs/screenshots/seedvault/sigal/
-
eoli3n
missing spaces
-
eoli3n
camera/ docs/ screenshots/ seedvault/ sigal/
-
dch
ok so
-
eoli3n
same problem with my backups
-
eoli3n
this is a design problem
-
eoli3n
what I setup is not working
-
dch
from the root, what do you see from `df -h /usr/local/bastille/jails/syncthing/root/data/zfs/sync`
-
dch
this is to try and see what the upper filesystem is in that jail
-
eoli3n
datas are in that dir yes
-
dch
and what does it show?
-
eoli3n
I sould ask on #bastillebsd
-
eoli3n
dch same dataq
-
eoli3n
same datas
-
eoli3n
ah
-
dch
/jails/g01/var/cache/pkg 707G 845M 706G 0% 40k 1.5G 0% /jails/g03/var/cache/pkg
-
eoli3n
you meant df -h lets try
-
dch
thats from a nullfs here
-
dch
what we want to see is what does freebsd see as the upper volume
-
dch
I'm wondering if bastille has (e.g.) started later, and mounted something on top of the nullfs mount
-
eoli3n
-
dch
so writes don't go where you think
-
eoli3n
dch that's it yes, it write under the dataset
-
eoli3n
"under"
-
eoli3n
i need to redesign what i do
-
dch
eoli3n: can you do specifically `df -h /usr/local/bastille/jails/syncthing/root/data/zfs/sync` ? and `zfs get all /usr/local/bastille/jails/syncthing/root/data/zfs/sync`
-
dch
not the df -h | grep
-
dch
the first will show precisely what the top layer filesystem is
-
eoli3n
toor@vps /d/z/sync# df -h /usr/local/bastille/jails/syncthing/root/data/zfs/sync
-
eoli3n
Filesystem Size Used Avail Capacity Mounted on
-
eoli3n
toor@vps /d/z/sync# zfs get all /usr/local/bastille/jails/syncthing/root/data/zfs/sync
-
eoli3n
oups sorry
-
eoli3n
-
dch
the latter will tell if (assuming its the overlaid zroot/bastille/jails/syncthing/root "hiding" the original nullfs mount
-
dch
np
-
dch
hmm
-
dch
thats not what I expected to see
-
eoli3n
FSTAB /data/zfs/sync data/zfs/sync nullfs rw 0 0
-
eoli3n
in my bastille template
-
dch
the df shows me that its not a nullfs mount there, its a zfs one
-
dch
and the zfs get all says its not zfs
-
dch
huh
-
dch
eoli3n: I think you should check this with bastille
-
eoli3n
yep
-
eoli3n
thanks for helping dch
-
dch
np
-
qtc`
I still haven't figured out my rc.d service issue; link service file
bsd.to/Jh47
-
VimDiesel`
Title: dpaste/Jh47 (Bash)
-
bsdbandit
good morning everyone im running freebsd 13.1 RELEASE -p6 amd64 on my lenovo x1 extreme gen 3 im trying to get suspend and resume working i can suspend with no problem but when trying to resume when opening up my laptop im not getting any video
-
qtc`
I have a service I want to run “syncserver”, a rust binary app I compiled.
-
qtc`
syncserver requires a python enviroment with specific packages available (installed through pip).
-
qtc`
If I install py39-pip and `pip install` the packages then the service will run without issues
-
qtc`
Therefor I assume that I’m incorrectly passing the python virtual environment to the rc.d service
-
dch
qtc`: I don't think PATH makes it through daemon(8)
-
dch
bsdbandit: are you using latest FreeBSD packages (i.e. not quarterly) ?
-
dch
bsdbandit: if not, switch to those and see if it helps
-
dch
bsdbandit: and then next stage is to see if you have any extra devices that are not resuming correctly. This is best asked in #freebsd-xorg channel imo
-
bsdbandit
thanks
-
bsdbandit
dch:
-
dch
qtc`: I don't see any other ports doing a venv in their rc.d script, so I suggest you make a small shell script that sets up the venv and calls your stuff
-
qtc`
-
VimDiesel`
Title: dpaste/oQxO (Bash)
-
qtc`
dch: do you need to create the python virtual enviroment on each boot? I though you need to only create it once.
-
dch
qtc`: on each invocation, from memory. it sets up paths and some vars.
-
qtc`
is that something that I would stick into `syncserver_precmd` ?
-
dch
qtc`: you could try moving the venv activate into precmd, and see how you go
-
eoli3n
dch this is not a jail problem, i have the same behaviour with my backup dataset
-
eoli3n
which is not mounted in any jail
-
eoli3n
i think this is a key problem
-
eoli3n
because of encryption
-
eoli3n
but then... where are my data, if the jails are encrypted ?
-
eoli3n
datasets*
-
eoli3n
without the key
-
parv
Or use the path in "bin/" or wherever inside the "venv" created instead of relying on "$PATH"
-
qtc`
Latest failed attempt
bsd.to/51Pc
-
VimDiesel`
Title: dpaste/51Pc (Bash)
-
eoli3n
how does a dataset handles writes when the encryption key is unavailable
-
qtc`
parv: not sure what you mean
-
parv
/path/to/venv/bin/kdlkldkfld
-
parv
No need to create the "venv" again; use the path as "/tmp/venv/bin/python"
-
parv
The failed attempt does list any error|warning messages or other issues
-
parv
s/does list/does not list/
-
parv
Run that with "sh -xv ... >| log 2>&1"
-
qtc`
adding /tmp/venv/bin/python still panics
-
parv
What is "panic"?
-
dch
eoli3n: no key loaded, the dataset shouldn't even be mounted IIRC. But ti definitely won't have data written to it (how would that be even possible)
-
dch
I've only tried this casually, cribbed off
klarasystems.com/articles/openzfs-native-encryption and it just worked (tm)
-
VimDiesel`
Title: OpenZFS Native Encryption | Klara Inc
-
eoli3n
dch but i does write
-
eoli3n
talking on #zfs if you want
-
dch
I might follow along there, I'm not really clear what the issue is anymore. nullfs is irrelevant, question is "my dataset is mounted, there is data in it, but snapshots are empty"?"
-
dch
anyway I have an errand,
-
qtc`
sh -xv /usr/local/etc/rc.d/syncserver || 3623 Lines of output
-
parv
That encrypted dataset may not be mounted but if something else would mount along that same mount point, the data would go in a plain directory somewhere up the hierarchy of the dataset
-
qtc`
parv: syncserver is a rust binary file, it panics if it doesnt have its python
-
parv
qtc`, Do you mean "syncserver" is looking for a Python interpreter accessible via literal "python" without an absolute path?
-
qtc`
probably, I don't know for sure but thats my impression
-
qtc`
if I `pip install <package>` via py39-pip, then everything works as expected, but I know thats bad so i'm looking to doing it correctly
-
parv
qtc`, Could you post (the output from "sh -xv") some 10 lines before & after when "activate" is sourced & when "/usr/local/bin/syncserver" is actually run?
-
paulf
i'm a python newbie but shouldn't you use pip --user of a venv?
-
paulf
or a venv
-
rtprio
qtc`: doesn't syncthing already have an rc script?
-
parv
qtc`, I take it the modules needed for "syncserver" are not available as FreeBSD packages|ports?
-
parv
-
VimDiesel`
Title: GitHub - mozilla-services/syncstorage-rs: Sync Storage server in Rust
-
qtc`
parv: no they are not
-
parv
qtc`, Aye. Thank
-
parv
s
-
qtc`
`sh -xv` output
bsd.to/QRuJ
-
VimDiesel`
Title: dpaste/QRuJ (Bash)
-
qtc`
parv: the first block is probably useless
-
qtc`
you'll notice that the service started and I needed to kill it, thats bc I ran `sh -xv /usr/local/etc/rc.d/syncserver` form the terminal as a user (which works)
-
parv
Did you start in a spanking new environment/terminal where your existing environment would not any effect?
-
qtc`
new tab > ssh > truenas > jail console > run command (root)
-
qtc`
same will happen if I run as syncserver user
-
parv
qtc`, After line 58 at
bsd.to/51Pc, add "env; exit" to see if "activate" has sufficiently stuffed the environment or not
-
parv
qtc`, Sorry make that "env | grep -E 'PATH|PYTHON' ; exit'
-
qtc`
I can already tell you there is no python
bsd.to/qaEv
-
VimDiesel`
Title: dpaste/qaEv (Bash)
-
rtprio
oh
-
qtc`
I copied the raw of
bsd.to/51Pc, and edited it as suggested
-
parv
qtc`, Would that not be found under /tmp/venv/bin ?
-
qtc`
yes python is /tmp/venv/bin/python
-
parv
So "python" is in PATH.
-
parv
Does "syncserver" not have a debug|trace|verbose option that could tell why it would fail?
-
parv
(Or use "truss", "ktrace")
-
parv
There might be some Rust tooling (am not familiar with the ecosystem yet)
-
qtc`
command_args="--config=${syncserver_config}; python -m pip install --upgrade pip"
-
qtc`
sh: python: not found
-
qtc`
but if i run pip where `env; exit` is inserted, pip runs as expected
-
Alif
hi all.. i was getting bug while i was compiling the nix-2.3.10. this is the log:
pastebin.com/EreZr6hb
-
VimDiesel`
Title: ld: error: undefined symbol: Aws::Crt::Endpoints::RuleEngine::~RuleEngine()>>> - Pastebin.com
-
Alif
how to fix it?
-
parv
qtc`, When you wrote " i run pip where `env; exit` is inserted, pip runs as expected", do you mean the "pip" installed system wide?
-
qtc`
checking one sec
-
parv
Alif, Have you installed all the required dependencies?
-
Alif
parv: yes, why?
-
parv
Alif, Well to be sure some library/header were not missing
-
Alif
parv: this is my log
pastebin.com/tP6bgtpa
-
VimDiesel`
Title: [root@klandestin /usr/ports/sysutils/nix]# MAKE_JOBS_UNSAFE=yes make===> Lice - Pastebin.com
-
parv
Alif, Ok
-
Alif
parv, would you try compile it?
-
qtc`
`which pip` is giving me `/tmp/venv/bin/pip` same for python
-
qtc`
rust panic
bsd.to/FUmh, due to missing python
-
qtc`
looks like where the command_args are concerned python or pip dont exist
-
parv
qtc`, Perhaps need to investigate if "run_rc_command" purges the environment
-
V_PauAmma_V
Alif, the current version in ports is 2.3.11, not 2.3.10. Try updating your ports tree and see whether the error goes away.
-
parv
Alif, sysutils/nix was updated to 2.3.11 on 202208; from
pastebin.com/tP6bgtpa seems you are building 2.3.10
-
VimDiesel`
Title: [root@klandestin /usr/ports/sysutils/nix]# MAKE_JOBS_UNSAFE=yes make===> Lice - Pastebin.com
-
Alif
mine packages are up to date ( i use freebsd 13.1-freebsd
-
Alif
parv: thank you. i will try
-
parv
Alif, Not package, but the ports tree that would need to be updated as V_PauAmma_V wrote
-
Alif
parv : i did "portsnap fetch" but i got same version.
pastebin.com/LgbfGNs5
-
VimDiesel`
Title: root@klandestin:/home/alif # portsnap fetchLooking up portsnap.FreeBSD.org mir - Pastebin.com
-
parv
qtc`, Try shoving the environment variables needed in "syncserver_env" variable; refer to "/etc/rc.subr" for any details
-
Alif
parv: how to fetch updated port?
-
parv
Alif, I personally use "git"; you may want to do a "shallow clone". BTW I just updated the ports tree and the latest commit at the time was "2023-0308 -0800 52e94aebf8 HEAD -> main, origin/main, origin/HEAD science/phonopy: Update 2.16.3 ..."
-
parv
... "52e94aebf8" is the commit hash
-
qtc`
chmod 777 -R /tmp/venv/ -- syncserver_env="/tmp/venv/bin" -- env: /tmp/venv/bin: Permission denied
-
parv
Use the whole of the "PATH=..." string
-
parv
Also, please do not set "o+w"
-
parv
Alif, shallow clone of the ports tree: "git clone --depth 1
git.FreeBSD.org/ports.git /somewhere/local/filesystem/ports"
-
VimDiesel`
Title: ports - FreeBSD ports tree
-
qtc`
I got it working
bsd.to/0JLy!
-
parv
-
VimDiesel`
Title: Chapter 4. Installing Applications: Packages and Ports | FreeBSD Documentation Portal
-
qtc`
Thank you for your help parv
-
parv
qtc`, Sweet
-
qtc`
I'll destroy my jail and rebuild it correctly this time
-
Alif
parv: forget me for being dump. i have not portsnap extract.. ok i got newer version, but i cant compile because the newest commit does not bring nix source code
-
Alif
so i can't compile it
-
Alif
parv: this is my log
bsd.to/108S
-
VimDiesel`
Title: dpaste/108S (Plain Text)
-
qtc`
I though this would only take an hour, it took a day instead.
-
parv
lol
-
Alif
hello again
-
Alif
what i missed?
-
parv
Alif, Either mark /usr/ports/distfiles, & possibly other directories, to be writable as your user or run the command as root
-
Alif
ok.. i will run portsnap extract as root
-
Alif
-
VimDiesel`
Title: nix « sysutils - ports - FreeBSD ports tree
-
Alif
what i should do now?
-
parv
What does "cd /usr/ports/systutils/nix && make fetch" do as root?
-
parv
*fudge* corrected: cd /usr/ports/sysutils/nix && make fetch
-
Alif
thank you.. it works on me
-
parv
Alif, Aye. After "make fetch" finishes, use "make install"
-
Alif
i still got same error about undefined symbol aws:crt (( log:
pastebin.com/s6dzJsJ3))
-
Alif
i downloaded all build, test, library dependencies via pkg (
freshports.org/sysutils/nix)
-
msiism
Is there anything wrong with creating an new group for allowing users to mount removable media instead of using the "operator" group as described in the Handbook?
-
Lovis_IX
hello antranigv. I read the readme of jailer project, sound really good. Is there a way to switch from iocage managed jails into jailer? For now, I use FreeNS on myy NAS, with iocage.
-
Lovis_IX
bsdbandit: when I installed my thinkpas X280, I read and use this blog post:
hauweele.net/~gawen/blog/?tag=suspend
-
VimDiesel`
Title: suspend | Gawen's blog
-
dch
msiism: nope, go for it
-
msiism
Thanks!
-
msiism
And, would it be unwise to name that group, say, "usermount"?
-
dch
Lovis_IX: in general this should be easy enough (tm) but FreeNAS will likely complicate matters significantly.
-
dch
I'd start off with a small jailer setup on a separate box (laptop or something easy)
-
dch
iocage has 2 main things
-
dch
- a config file with all the jail-related settings in it which you'd need to transfer over manually between tools
-
dch
- a root volume with all the files in it. you can probably just tar that up and untar it over the top of the jailer created config, then go through and tidy up the settings
-
VVD
otis, hi! Thanks for zabbix 6.4! Look like it support PHP 8.2:
zabbix.com/rn/rn6.4.0
-
VimDiesel`
Title: Release Notes for Zabbix 6.4.0
-
VVD
-
VimDiesel`
Title: [ZBXNEXT-8204] PHP 8.2: Dynamic Properties are deprecated - ZABBIX SUPPORT
-
VVD
But I didn't tested this.
-
Lovis_IX
hello dch, thanks for your advises, I will try soon as possible (for now I have a ccat on my knee, it's difficult to concentrate) :-)
-
dch
Lovis_IX: I envy you!
-
Lovis_IX
for the jail migration or for the cat? :-)
-
antranigv
Lovis_IX hey there! not yet, with 0.1.3 (the next-next release) we will have a parser to migrate things from IOCage as well as BastilleBSD.
-
Lovis_IX
thanks antranigv
-
antranigv
Lovis_IX but dch is right, things can be done manually as well. I haven't used it in a while, so it will take me couple of weeks to write a converter :D
-
antranigv
Lovis_IX thank you for testing it!
-
Lovis_IX
I'm waiting for new disque with higher capacity, I will cange freeNAS for FreeBSD 13.1 then try to migrate jails from iocage to jailer.
-
Lovis_IX
change*
-
otis
VVD: yep, it does. i forgot to remove that restriction after my testing.
-
msiism
Is there a way to determine the file system type on an external storage device before mounting it?
-
cracauer
file(1)
-
msiism
Okay, thanks, `file -s <device>` does what I want here.
-
msiism
Now, file(1) says, "reading special files may have peculiar consequences". What do I need to watch out for?
-
jgh
whether your tape is rewound on closing, after this read
-
msiism
I'm not using tape yet.
-
msiism
The question is mainly about external HDDs and flash devices.
-
jilles
msiism, it's probably about things like terminals, which block waiting for input and consume it once it's available
-
jgh
it's a question for the device-driver, more than for the hardware device. Traditionally, actions like that were coded by having multiple special-device names in the filesystem for a single hardware device
-
otis
msiism: also fstyp(8) might help
-
msiism
I see. Thanks.
-
msiism
fstyp for the win. :)
-
CmdLnKid
not neccesarily. doesn't identify apfs along with plenty more fs's
-
msiism
Okay, noted.
-
CmdLnKid
vdi, qcow(1,2), apfs, ...
-
CmdLnKid
it could use some attention
-
msiism
For USB keys, I almost always use FAT, though.
-
CmdLnKid
but its a good tool none the less
-
CmdLnKid
found myself plenty of times just using hd(1) along with hexedit to inspect the first bytes of a filesystem just to determine the proper tool to determine what it was
-
CmdLnKid
only to come out to the fact that google and such will give you a hint and lead you down the right path
-
rtyler
antranigv: I wasn't able to join the jails chat this morning due to a meeting conflict :>(
-
antranigv
rtyler not too late to join! shall I DM the link?
-
domlaut
can anyone join?
-
rtyler
antranigv: unfortunately not, still meeting, just multi-tasking ;)
-
Lovis_IX
domlaut: you're curious too :-)
-
domlaut
Lovis_IX: I'd gladly listen in, esp if it touches on jailer
-
antranigv
domlaut yes
-
antranigv
domlaut shall I DM?
-
domlaut
yep
-
Demosthenex
ugh, ok so i copied over my zfs filesystems from one to the other, but i can't seem to boot.
-
rtprio
Demosthenex: did you make the new disk bootable? man zfsboot or gptzfsboot
-
Demosthenex
so i made a fast base install to the new laptop, booted it OK, then booted USB and removed all the filesystems in zroot. then i zfs sent all the ones from my other box, and confirmed they were present
-
Demosthenex
rebooting didn't find the boot i guess
-
rtprio
and the zfs tree looked the same as the fresh install?
-
Demosthenex
which is odd, because i left the efi partition alone from the new install
-
Demosthenex
i wonder if the old system zpool name of zssd vs the new install of zroot is an issue
-
rtprio
yes, that could very well be
-
Demosthenex
though after the geli initialization, it's not loading the boot screen.
-
Demosthenex
makes me wonder about the loader
-
Demosthenex
hrm, this lsdev shows my zroot
-
rtprio
what's the error when the laptop boots
-
Demosthenex
can't find efi something, reboots in 4 sec, i hit a key now at a prompt.
-
Demosthenex
i can lsdev, lszfs, etc.
-
rtprio
hand repairing the zfs loader is something i haven't done for quite a while
-
Demosthenex
oh, i wonder if the old lappy was BIOS boot, not uefi
-
Demosthenex
meaning my kernel is in zroot/ROOT/boot/...
-
yuripv
Demosthenex: did you set bootfs on root pool?
-
rtprio
(if it were me, i'd do the fresh install, import the zfs, but manually integrate them into the fresh system
-
Demosthenex
yuripv: not sure. must check.
-
rtprio
but importing with zfs-recv the zfs partitions should be under the existing pool, right
-
Demosthenex
existing pool is uefi
-
Demosthenex
old pool may be bios
-
Demosthenex
"show" has all the right things for the boot env, etc
-
yuripv
i mean the "bootfs" property on your boot pool, e.g.:
pastebin.com/cDZKxB2y
-
VimDiesel`
Title: $ zpool get bootfs systemNAME PROPERTY VALUE SOURCEsystem - Pastebin.com
-
Demosthenex
yes, i have to boot to usb to find out, just a moment
-
Demosthenex
that is set on the old
-
Demosthenex
no, new has no bootfs.
-
Demosthenex
fixing
-
rtprio
but the installer would have set it bootable
-
Demosthenex
wonder if when i removed the old os filesystems it cleared that
-
Demosthenex
ah, now i got the loader.
-
Demosthenex
and i booted, correcting fstab.
-
Demosthenex
ha! love it! it all came right up
-
Demosthenex
stumpwm in all it's glory
-
Demosthenex
ok, so how should i update the bootloader just in case
-
yuripv
cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi
-
yuripv
(if you have the now-default mount of esp)
-
Demosthenex
-
VimDiesel`
Title: Update of the bootcodes for a GPT scheme | The FreeBSD Forums
-
Demosthenex
that was actually pretty smooth
-
Demosthenex
so tomorrow i can shutdown to single user, take a final snapshot, and incremental update by zfs send, and i'm done
-
Demosthenex
sweet
-
ek
Hrm. Anyone know what creates the /zroot directory on a ZFS-on-root FBSD system?
-
ek
Apparently, all my FBSD systems have a /zroot directory except one and I can't figure out why.
-
rtprio
the installer does, because that's the name of the pool
-
debdrup
It's the mountpoint for the zroot dataset.
-
debdrup
It's used to make boot environments work, I believe.
-
ek
Strange. This was setup as ZFS on root from day one. Everything works as expected but there isn't a /zroot directory so automated snapshots fail testing for /zroot/.zfs/snapshot directories.
-
ek
I'm stumped as to how that could not exist.
-
debdrup
It's not part of zpool-history(8)?
-
debdrup
Rather, it's excluded from that?
-
debdrup
There should be a `zfs set mountpoint=/zroot zroot`
-
ek
Nope. Not there.
-
ek
All my other systems have the mountpoint set, though. How strange.
-
ek
I'm comparing zpool histories and that's the only difference.
-
debdrup
freebsd-version -kru reports?
-
debdrup
And what's the timestamp on pool creation?
-
ek
13.1-RELEASE-p2
-
ek
2015-04-04 is timestamp of pool creation.
-
ek
I guess maybe that long ago, the mountpoint wasn't set by default? I dunno.
-
ek
I can likely just set the mountpoint now. I don't think it'll harm anything.
-
debdrup
-
VimDiesel`
Title: src - FreeBSD source tree
-
ek
debdrup: Haha. Just missed it by 3 months. :)
-
rtprio
ek: your pool is almost as old as mine
-
debdrup
ek: a bit more, considering that that would've had to land in a RELEASE first.
-
debdrup
10.2 would've been the first eligeble RELEASE according to /usr/share/misc/bsd-family-tree
-
debdrup
My zpools creation time was on 2008-02-27, which I assume is when 7.0 came out.
-
rtprio
debdrup: still sporting the same pool as then?
-
ek
debdrup: Very true.
-
rtprio
i'm not a fan of the 'One or more devices are configured to use a non-native block size. Expect reduced performance.' now that drives are 4k sectors
-
debdrup
Actually no, that's a lie. The last transfer to my newest laptop involved a zfs send!
-
debdrup
So my pool is much newer.
-
ek
They've got a /zroot mountpoint!
-
debdrup
The 30th of December, 2021!
-
debdrup
Yeah, I did get my T480s right at the end of December - I hadn't expected to get it until after Newyears.
-
debdrup
This used T480s was my newest hardware for... almost a decade?
-
Demosthenex
debdrup: i just got one. i'm going to miss my modded x230 with the good keyboard
-
Demosthenex
that's what i'm migrating to
-
debdrup
I miss my T420 keyboard too.
-
debdrup
The move to a NVMe based SSD, a much faster CPU, and more RAM was worth it, though.
-
debdrup
Had I the money for it, a X2100 to play with would be fun.
-
ek
debdrup: That would be nice.
-
ek
Yup. Just set the zroot mountpoint and everything appears fine. Thanks for the help/feedback, all!
-
rtprio
ok, but why is zroot/var canmount=false
-
Lovis_IX
debdrup, ek I still in love with my X280
-
domlaut
huh, the 13.1-RELEASE installer's hardening still sets sendmail_enable=NONE (deprecated) instead of NO
-
domlaut
ah, not equivalent. I wonder why it doesn't just list all the things NONE affects
-
michaeldexter
antranigv: Here?
-
antranigv
michaeldexter yup!
-
gman999
are you the *real* michaeldexter?
-
gman999
i think i read about you
-
meena
gman999: some people in here are "famous". they are, however, and i know this is hard to believe: still actual real people
-
gman999
oh, right we're not alone.
-
gman999
we know each other for like 15-20 years.
-
gman999
sorry for sounding like a troll
-
ek
Haha.
-
meena
my thought was more like fangirl, lol
-
gman999
gender isn't always defined in a handle
-
meena
gender is overrated, plus its March 8.
-
gman999
happy iwd
-
meena
today (and only today) Herrengasse U-Bahn stop Was renamed to Frauengasse
-
» gman999 sms's dexter since i cant kick his leg
-
» meena burns her bra, demanding more pay
-
» jgh rechecks; no, not in an #osm channel
-
michaeldexter
gman999: I an AI construct. May I write a conference paper for you?
-
gman999
is it as good as your normal writing?
-
michaeldexter
Happy IWD!
-
gman999
and to you and the family!
-
gman999
someone thought i was trolling/fanclub'g you
-
gman999
i was going to say something like...
-
gman999
"are you the guy mentored by that george from nyc?"
-
michaeldexter
Counting... 8 W! Including the dog and five hens...
-
gman999
omfg
-
gman999
you farmers
-
gman999
come on.. *that* would have been funny no?
-
michaeldexter
I will never understand why people lay more eggs than hens.
-
gman999
ha ha ha... ouch
-
gman999
im not doing bsdcan this year.. but need ot chat one-on-one about the topic i'm tinkering on.
-
michaeldexter
WAT?
-
gman999
meta-bsd
-
gman999
i know.. maybe.. but unlikely
-
gman999
i am going to tor summit in costa rica :)
-
gman999
the weather and food are better
-
michaeldexter
LOL, I just discussed the "Outsiders Guide to (insert here)BSD" with someone. Same topic?
-
michaeldexter
I'm sure the rum is better too.
-
michaeldexter
But, may AI algorithms can interpret "meta-bsd" in 43516546 different ways.
-
gman999
well... more talking to each other than the outside world.
-
gman999
not like we did with the last nycbsdcon
-
gman999
which was addrssed to $other
-
gman999
mwl said: "you have set bar very high with this".. .and we havne't had one since!
-
gman999
patrick wants to badly.. but i dont have the time/abilities yet
-
gman999
but we are having our first nyc*bug meeting again in april... so we see
-
mason
michaeldexter: Five hens sounds inefficient. What sort, though?
-
rtyler
in my locale five hens is the maximum allowable per city code xD
-
rtyler
antranigv: would you be game to join #freebsd-jails to be peppered with some jailer questions?