-
mjacob
is link(2) is not included in the “system calls” section of
man.freebsd.org/cgi/man.cgi?query=symlink&sektion=7
-
armin
mjacob: 1) the symlink itself 2) symlink(7) focuses on symbolic links, while link(2) focuses on hard links, i agree that's confusing
-
dgriffi
where's some meaningful documentation for the read(1) builtin command?
-
dgriffi
I'm trying to eliminate a dependency on bash
-
jgh
probably in each of the manpages for the various shells
-
kevans
dgriffi: sh(1) has a decent description, don't try to look at read(1)
-
kevans
imo builtin(1) is a load of bullshit but I don't think I'd get any buy-in for what I'd prefer
-
dgriffi
I'm trying to get the functionality of bash's "read" builtin with its -d option.
-
kevans
bash(1) has a description of its 'read' with -d
-
TommyC
using bash is not an option here, I suppose?
-
kevans
all good citizens de-bash what they can :-p
-
kevans
builtin(1) is still a load of bullshit, even if what they really wanted is bash' description
-
armin
I've been told to not admit too loud that I'm a BASH fetishist
-
dgriffi
kevans: I'm trying to eliminate the use of "read -d"
-
dgriffi
I do like using bash interactively, but for what I'm working on, I don't want to have to tell people "you must install bash"
-
dgriffi
it's looking like I'll have to port this script to perl
-
TommyC
Well, now you're telling people "you must install perl". :3
-
dgriffi
oh.. right
-
» TommyC never got a ticket for the bash hate train
-
armin
I'm still WAY too deep in love with BASH...
-
TommyC
It's not my interactive shell but if I need to create a script to be shared with others, it's my go to.
-
armin
My interactive shell is ZSH.
-
armin
It just happened to work a tiny bit better than BASH in my case, less surprises, syntax highlighting, well there was a bit of benefits, yea
-
armin
I ended up with some 200-300 lines ZSH configuration file that does everything that I could ever ask for
-
armin
Like yea without any framework whatsoever
-
armin
That's a lot of reconstruction, re-structuring, refactoring (I guess that's the term) but it's so worth it
-
kevans
i don't mind bash as much if the shebang is properly written
-
kevans
my #1 annoyance with it is that it doesn't really put any effort into disabling some of the bash-isms if executed as 'sh'
-
dgriffi
screw it. I'll just like bash as a requirement
-
dgriffi
list
-
crb
I have some warnings about a corrupted GPT table on one of my zfs disk, does this happen when you dedicate a disk to ZFS without partitioning it and using a partition? I've been a bit hesitant to fix it for fear that doing so might overnight some ZFS data
-
mzar
crb: yes, but it's fine to have ZFS on unpartitioned drive, unless you want to boot from it
-
crb
I mean it does seem to work fine and has for a long time, I guess I'm just thinking it might be safer to partition and then use the partition
-
crb
I dislike having the warning come up, and for some reason I thought that ZFS put a fake partition table at the front of the disk even when you dedicate the whole disk
-
ek
crb: Most applications would like/prefer a partition as a safeguard to make sure there isn't anything overwritten. However, they're certainly not required by any means. You can dedicate an entire disk to any FS if you want to.
-
ek
No partitions needed. Unless, as mzar mentioned, you're trying to boot from it.
-
ek
What, exactly, is producing the warning message you're seeing? Is this at boot time or something?
-
ek
What type of disk is it (gpt? mbr?) and how is it being mounted?
-
ek
If you can, just toss the data on that disk to somewhere else and then reformat again creating a partition (slice.) I'm not sure if that'll actually make any difference, but you might not see those errors anymore?
-
ek
I've never experienced this, so I'm just guessing.
-
crb
ek: GEOM produces them at boot
-
crb
it's an SSD that I didn't partition but merely used in a zfs create like zfs create foo nda0
-
crb
ek: as it's terabytes of info it's not really easy to just toss somewhere
-
Unit640
Does FreeBSD have the ability to update its kernel "on the fly", meaning no reboot needed? Linux cannot, but I can't for the life of me remember doing this while using FreeBSD. Maybe I was always running an out of date kernel without realizing it? (Since full disk encryption was used, it didn't come back on its own if I just rebooted it remotely.)
-
crb
Unit640, no
-
Unit640
Hmm.
-
ek
Unit640: Definitely not. But, kernel modules can rebuilt and re-loaded on-the-fly (usually.)
-
SponiX
-
SponiX
Unit640: Ubuntu and RHEL/Clones can do live kernel patching
-
ek
crb: I wouldn't worry about the boot message. It's likely just a safeguard or fail safe to alert someone about a possible issue with partition issues. Again, I've never seen this, but I can't fathom why that would be an actual issue.
-
SponiX
I don't partition my data drives at all. Only my OS drive
-
ek
Same. Never had any problems.
-
ek
Although, I also don't generally use single ZFS drives. It's been a long time since I've done that.
-
ek
Kinda has me curious now, though.
-
ek
Oh, my! I didn't realize how late it was. I'd better get to sleep. Lots of prep tomorrow for the US holiday that follows.
-
mjacob
armin: i already suspected that the symlink itself is hardlinked. but is there a referencable, quotable source for that?
-
mjacob
armin: i still don’t understand why link(2) is not listed in symlink(7) as “does not follow symlinks”
-
crb
is there an easy way to zfs send a whole set up filesystems under a parent?
-
crb
never mind, thank you
-
Unit640
SponiX: Well, I use Debian Linux. Didn't think such major things differed between distros.
-
Unit640
It bothers me that a server has to be manually "babysat", regardless of the OS running.
-
luke_jobless_sb
can i run 3rd os other than linux in jail?
-
crb
luke_jobless_sb, I didn't think you could run linux in a jail, you can run linux in a VM like bhyve
-
crb
luke_jobless_sb, as I understand it jails are not a VM
-
» luke_jobless_sb is confused
-
TommyC
luke_jobless_sb: jails use the FreeBSD kernel and provide a restricted FreeBSD user space on the host machine
-
ridcully
-
TommyC
A linux userspace wouldn't be able to make use of the FreeBSD kernel (except maybe Gentoo but that's some dark magic I don't study)
-
TommyC
luke_jobless_sb: If you're familiar with Linux's lxc project, think of it like that, lxc can act as a container for multiple distributions because they all use the Linux kernel but lxc can't make Windows containers.
-
luke_jobless_sb
i dont any meaningful linux server. but it seems it's time to try such container
-
TommyC
Unit640: What do you mean by babysat, exactly?
-
TommyC
There's plenty of logging/monitoring utilities and 99% of the time I just use ansible to handle something.
-
luke_jobless_sb
i ssh
-
TommyC
lots of people do
-
crb
luke_jobless_sb, ok but I think the difference there is that it's not a linux kernel running it's linux binaries running under the freebsd kernel
-
crb
FreeBSD has special sys call support for running linux binaries. There aren't other OS that can be emulated in this way whereas a bhyve VM can run virtually any OS and that OS kernel is actually running
-
luke_jobless_sb
crb: I don't have any opinion.
-
luke_jobless_sb
crb: can i run haiku or darwin in freebsd containerization?
-
Alver
luke_jobless_sb: no.
-
Alver
luke_jobless_sb: you seem to misunderstand the concept of "containers".
-
TommyC
Do those projects use FreeBSD kernels (I don't know if they actually do)?
-
Alver
They don't.
-
TommyC
ah, then no
-
Alver
(... well, Darwin in some distant past was sorta kinda BSD related)
-
luke_jobless_sb
Alver: I think I misunderstand and this beer helped
-
TommyC
You *might* be able to run Gentoo/FreeBSD (the Gentoo project but using the FreeBSD kernel, although I don't know the status of that project).
-
Alver
luke_jobless_sb: you can either run current or older FreeBSD versions in a jail, which can sorta kinda run Linux binaries if you want, or you can install a full OS in bhyve VMs, and then your CPU architecture is the limit.
-
Alver
Debian used to have a kFreeBSD branch. Doubt it gets much testing though.
-
Alver
But, even there, not in a jail.
-
TommyC
that's a dayum shame
-
Alver
Eh, it's a "look mon I'm using a nonstandard kernel" kind of thing.
-
Alver
s/mon/mom/
-
TommyC
lol
-
Alver
They have (had?) the same with GNU HURD.
-
luke_jobless_sb
Alver: so if there exists a linux project that runs all of these 3rd os binaries(which belongs to linux) in this manner, can i still run their binaries but it is still on bsd kernel?
-
Alver
"The development of Debian GNU/kFreeBSD has officially terminated as of July 2023 due to the lack of interest and volunteers"
-
TommyC
very sad
-
Alver
luke_jobless_sb: a jail is using the same kernel as the host, period
-
Alver
You cannot "install" an OS in a jail. You can have a different userland, provided it can use the host kernel
-
Alver
So, short answer, no
-
Alver
If you want a different OS, use VMs. That's what they exist for. Jails have a different purpose
-
TommyC
afaik FreeBSD can only run FreeBSD jails (for now, again I'm not sure of the status of the Gentoo/kFreeBSD project)
-
Alver
That being said, I was trying to get podman to work in a jail. Would have enabled "standard" docker images to run, which tends to be Linux oriented. Quite unsuccesfully
-
luke_jobless_sb
Alver: i just use jails for all. I think those you call purpose is at some point diminished. I just like the fact that I can try them on a new jail and delete it.
-
Alver
o_0
-
luke_jobless_sb
i also like that I can cut internet connection within the jail sometimes
-
TommyC
luke_jobless_sb: are you telling us, when you want to use firefox or something you install it in a jail and use that?
-
Alver
You cannot use jails "for all".
-
Alver
TommyC: heh, that would be a fun thing to do, in a way.
-
luke_jobless_sb
Alver: i was thinking about my jails and they don't really fit in those purpose. they are just jailed. nothing so much sake of purposeful
-
luke_jobless_sb
*fullness
-
TommyC
luke_jobless_sb: What are you, a docker dev?
-
luke_jobless_sb
TommyC: it's like api jail, nginx jail, client jail, ...
-
luke_jobless_sb
TommyC: you get the idea
-
luke_jobless_sb
git server jail, znc jail
-
TommyC
yeah those makes sense
-
luke_jobless_sb
that's for example my uses of jails. pretty much what docker folks do
-
luke_jobless_sb
i feel lazy to 'exactly' try other OS
-
Alver
It's much more efficient doing it in jails too. VMs have overhead, both in resources and time spent in admin
-
luke_jobless_sb
Alver: yes. i am cheap.
-
» luke_jobless_sb winks
-
Alver
luke_jobless_sb: you should call it "cost-efficiënt". :D
-
Unit640
TommyC: By "babysit", I mean any kind of action that a human being has to do related to the server, as opposed to it applying all updates on its own in a fully automated manner.
-
Unit640
I repeatedly get the feeling that many people don't want such a scenario/computer world because of job security/sense of purpose reasons.
-
TommyC
Do... do you guys not automate that? :3
-
Unit640
Automate the unautomateable?
-
TommyC
Why are updates not automatable?
-
TommyC
I feel like that's one of the first things that people automate.
-
the_oz
Some servers are retarded. BIOS set to always on and one hp prolient dl360 for some reason ignores it
-
the_oz
but that's hopefully an exception to normal
-
the_oz
it also prompts for whether we want auto rebuild or not
-
the_oz
on the something or other smart array 420 or so...
-
the_oz
I think they're professional comedians
-
Unit640
TommyC: Because kernel updates to Linux (and apparently FreeBSD) cannot be applied on the spot, while running, so a reboot is needed, which means downtime and getting stuck at the "enter decryption passphrase" thing. For one.
-
Unit640
TommyC: And even with "automatic upgrades" enabled on Debian Linux, it doesn't actually auto-restart the services affected by the updates (except in some cases), so you still need a human to do that.
-
SponiX
Unit640: I thought I linked you to the methods that provide that for Linux lol
-
Unit640
SponiX: Still researching that, but the downtime for the reboot still would happen.
-
Unit640
SponiX: The hacking of the boot process is scary.
-
Tenkawa
Unit640: there is a commonly used service in linux debian based distributions called "unattended-upgrades" that has removed much of that manual intervention...
-
SponiX
Well kernel live patching is available for Linux, It only really supports Ubuntu and RHEL. but it does exist
-
Tenkawa
SponiX: kexec supports realisticlly any env properly setup for it..
-
SponiX
Tenkawa: Yeah, but every time I've looked at it - It was too complicated for me. Oracle Ksplice was easy to use, and the Tuxcare support likely isn't that tough either
-
kevans
kexec would be cool to have here
-
Tenkawa
SponiX: yeah I was going to mention it has a high learning curve
-
SponiX
I just Unix as a hobby, so the once a week or so reboot doesn't bother my users too much
-
Tenkawa
Ah.. I've been using Unix since 79
-
Tenkawa
heheh
-
SponiX
Tenkawa: then you are even OLDER than I am... I started playing with Slackware in about 1995
-
Tenkawa
SponiX: yeah started on Slack in 93
-
Tenkawa
Was running an ISP with it...
-
the_oz
-
the_oz
looks like last activity was in 2016
-
the_oz
based on the github
-
Tenkawa
kexec in linux sat for years too... just recently got popular again
-
the_oz
his talk goes over a lot of the same stuff you would be expected to solve if you wrote your own bootloader
-
the_oz
GDT, IDT, Page tables, TSS
-
luke_jobless_sb
so can I run other os or other os binaries?
-
luke_jobless_sb
other than linux?
-
luke_jobless_sb
i was just asked back and answered some questions(drunk), gone sleep. and it seems I just need to work it out myself
-
Unit640
Tenkawa: I'm using "unattended-upgrades", like I mentioned. It doesn't automate it.
-
Unit640
It very much requires "attention" from a human, in spite of the name.
-
Tenkawa
Unit640: not from what I've seen..
-
rtprio
ok, linux updates can be discussed in a different channel
-
regis
Diablo-D3: Governments aren't strictly anti- but are acting on the extreme of "safe side". Everyone is trying to find a "no-trip approach", but several medicinal startups already bakrupted on this - they were trying to synthesize similar molecules but with no trip effect, or to find some trip stoppers (apart from known ethanol and bezno, which are stopping the trip immediately, which also results
-
regis
in no meaningful effects from the unfinished trip), but it's all crap. The psio+SSRI=notrip will have no effects as well. I believe that it's the absolute chaos in serotonin receptors that "makes" the trip (pleasant or unpleasant experience - doesn't matter) which actually triggers the change in the following weeks. Numbing how the psilocybin affects the 5-HT1A receptor with SSRIs simply will make
-
regis
it not work at all.
-
regis
Apologies, wrong channel.
-
rtyler
o_O
-
regis
Wrong chan, as I said. That's a conversation related to Polish government's study on psilocybin on despression treatment, which they are planning to do with psilo along with SSRI. No drug abuse stuff here. My comment was supposed to go on #nutrition. I again apologise for being a dumbass after changing IRC clients ;-)
-
ober
ssri stop psilo from working however
-
regis
Yup, that's the topic discussed. Polish government is going however planning to spend some $4M to "test" this theory and they proudly call it "one of the world-first attempts at assessing the efficacy and tolerance of SSRI with psilocybin. It's a complete waste of public money. Apologies for Polish link but it's not available in English. Translate on your own:
-
regis
-
fink
cool, anyway, when do we get a working libuuid implementation?
-
fink
-
rtprio
does it do more than generate uuid's?
-
fink
yeah, i mean, the current e2fsprogs implementation is missing a slew of features...
bugs.freebsd.org/bugzilla/show_bug.cgi?id=251489
-
TommyC
SponiX, Tenkawa: Out of curiosity, why did you two stop using Slackware?
-
Tenkawa
TommyC: moved to Debian and HP-UX (for my job)
-
TommyC
ah
-
SponiX
TommyC: Think mine is because Linux Mint was more friendly to new users in the friends and family category. So, I started running it too in order to help them
-
Tenkawa
I was a Sun/HP/Linux admin back then