2020-01-08T00:53:26 #kisslinux so far all of my compiled programs (incl. python, etc. not tested with llvm yet but I doubt it requires them) actually doesn't require yacc/m4 at compile time
2020-01-08T00:53:38 #kisslinux neat
2020-01-08T00:54:19 #kisslinux the kernel and mesa need bison
2020-01-08T00:55:15 #kisslinux for now I only need CLI for the test system, GUI is a different beast to tackle on
2020-01-08T00:58:36 #kisslinux <micro_O> oh fuck
2020-01-08T00:58:48 #kisslinux <micro_O> welp, i hope these logs don't get scraped
2020-01-08T00:58:53 #kisslinux <micro_O> boo middle-click-as-paste default
2020-01-08T00:59:10 #kisslinux this channel does get logged
2020-01-08T00:59:50 #kisslinux <micro_O> yeah im emailing the person who runs it now
2020-01-08T01:08:58 #kisslinux <micro_O> baleeted yay
2020-01-08T01:17:42 #kisslinux unsurprisingly, some programs do need GNU make (such as busybox), but almost all programs I tested with ./configure so far works well with bmake
2020-01-08T01:39:26 #kisslinux well, nevermind
2020-01-08T01:53:55 #kisslinux ?
2020-01-08T02:01:39 #kisslinux some programs (such as curl and mandoc) can't seem to find the docs/manpages with bmake install (gmake, however, can find them fine)
2020-01-08T02:01:53 #kisslinux https://termbin.com/2dh2 (bmake and bmake install)
2020-01-08T02:02:03 #kisslinux https://termbin.com/edvr (bmake and gmake install)
2020-01-08T03:15:12 #kisslinux how easy is to have gnu on kiss distro?
2020-01-08T03:58:50 #kisslinux TwistedFate: iirc someone created "kissD" aka. kiss package manager+glibc+systemd+all that
2020-01-08T03:58:54 #kisslinux two secs
2020-01-08T03:59:20 #kisslinux https://github.com/fanboimsft/kissD
2020-01-08T04:11:28 #kisslinux man efibootmgr is a pain
2020-01-08T04:11:54 #kisslinux the build system is soooo fucked
2020-01-08T07:44:47 #kisslinux o/
2020-01-08T08:05:14 #kisslinux konimex: +1 for efibootmgr being a PITA
2020-01-08T08:05:41 #kisslinux but once you get the hang of it, it's alright
2020-01-08T08:06:12 #kisslinux my wireless is still dysfunctional
2020-01-08T08:06:24 #kisslinux all networking, actually
2020-01-08T08:06:46 #kisslinux only avenue that i have yet to try -- older kernel version
2020-01-08T08:08:23 #kisslinux using efibootmgr is actually straightforward, building it is a different story, especially if one is at a "non-standard" build environment
2020-01-08T08:09:17 #kisslinux ah
2020-01-08T08:09:23 #kisslinux right
2020-01-08T08:32:51 #kisslinux efibootmgr --verbose
still doesn't work on my machine after the patch
2020-01-08T08:33:12 #kisslinux i'll send the logs later, im on the phone
2020-01-08T09:18:04 #kisslinux lieuxnoir: Thanks
2020-01-08T09:18:20 #kisslinux The efibootmgr code is gross
2020-01-08T09:25:37 #kisslinux dylanaraps: sorry that i didn't have given you yesterday the information about my kiss linux problems. I had try'd myself, and have solved the issue that i got. So finally i have a clean installation :D
2020-01-08T09:25:48 #kisslinux Nice :)
2020-01-08T09:26:39 #kisslinux I want to write a Wiki page listing kernel configuration options which are required for a working install.
2020-01-08T09:29:48 #kisslinux yeaah would be nice :D also i think we can write some wiki for specific hardware use, like which option to enable for atheros wifi cards ans so on
2020-01-08T09:29:58 #kisslinux Yup
2020-01-08T09:30:20 #kisslinux ooo
2020-01-08T09:30:31 #kisslinux It seems like the efibootmgr issue is actually an issue in efivar.
2020-01-08T09:31:05 #kisslinux the efivar.h not found problem?
2020-01-08T09:31:57 #kisslinux No no
2020-01-08T09:32:02 #kisslinux efibootmgr -v shows errors
2020-01-08T09:32:20 #kisslinux The verbose option doesn't actually work.
2020-01-08T09:32:28 #kisslinux It's a GCC 9 issue with efivar.
2020-01-08T09:32:42 #kisslinux Ubuntu, Debian and Arch pull in 4~ patches from upstream.
2020-01-08T09:32:56 #kisslinux b98ba8921010d03f46704a476c69861515deb1ca 2020-01-08T09:32:56 #kisslinux c3c553db85ff10890209d0fe48fb4856ad68e4e0 2020-01-08T09:32:56 #kisslinux 0dad6d78a7fb5f6c5fb4a1d646040539db6cf865 2020-01-08T09:32:56 #kisslinux fdb803402fb32fa6d020bac57a40c7efe4aabb7d 2020-01-08T09:32:57 #kisslinux 4e04afc2df9bbc26e5ab524b53a6f4f1e61d7c9e
2020-01-08T09:35:22 #kisslinux I might just swap the package to use a git snapshot of master keeping the version the same.
2020-01-08T09:35:24 #kisslinux Dunno yet.
2020-01-08T09:36:05 #kisslinux Upstream fo efivar and efibootmgr are seeing commits semi-regularly though no releases have been made in a long while.
2020-01-08T09:43:49 #kisslinux OK
2020-01-08T09:43:50 #kisslinux Pushed.
2020-01-08T09:45:46 #kisslinux o/
2020-01-08T09:45:50 #kisslinux sup fam
2020-01-08T09:48:35 #kisslinux Hey
2020-01-08T09:56:25 #kisslinux E5ten: https://github.com/systemd/systemd/issues/14495
2020-01-08T09:56:30 #kisslinux Lord
2020-01-08T10:41:38 #kisslinux dylanaraps: forgot to change curl's sources
2020-01-08T10:43:23 #kisslinux Oops.
2020-01-08T10:43:25 #kisslinux Fixing now.
2020-01-08T10:43:26 #kisslinux Thanks.
2020-01-08T10:44:35 #kisslinux Fixed.
2020-01-08T10:45:13 #kisslinux :D
2020-01-08T11:11:12 #kisslinux howdy
2020-01-08T11:14:07 #kisslinux just to clarify, if i run kiss, poetterware crap won't be able to sneak in as an update or something like that?
2020-01-08T11:23:12 #kisslinux TwistedFate: as long as you're using official (main and community) repos only, yes, no systemd et al.
2020-01-08T11:25:06 #kisslinux nice, good to see another distro that shares the hatred towards poetterware crap
2020-01-08T11:27:44 #kisslinux does anyone else still has issues with kernel configuration?
2020-01-08T11:32:27 #kisslinux I just do a "localyesconfig" and be done with it
2020-01-08T11:32:54 #kisslinux ^ from another system
2020-01-08T11:33:02 #kisslinux yeah, was about to suggest lol
2020-01-08T11:33:13 #kisslinux weird, i can't seem to find videos about kiss on youtube
2020-01-08T11:33:28 #kisslinux is kiss new?
2020-01-08T11:33:37 #kisslinux relatively new, yes
2020-01-08T11:33:39 #kisslinux yes-ish
2020-01-08T11:35:38 #kisslinux would having glibc feel like tilting at windmills on kiss?
2020-01-08T11:37:42 #kisslinux from kiss itself? you'll need a cross-compiler
2020-01-08T11:38:03 #kisslinux you could probably bootstrap kiss-repo (replacing musl with glibc) from another distro, you'll need a relatively minimal distro though
2020-01-08T11:38:10 #kisslinux (i.e. not arch)
2020-01-08T11:38:39 #kisslinux adamantium: adam!!
2020-01-08T11:38:42 #kisslinux hi!
2020-01-08T11:46:12 #kisslinux https://github.com/a-schaefers/kiss-overlay/blob/master/boot.el/files/boot.el
2020-01-08T11:46:18 #kisslinux TwistedFate: !!!!! You joining us?
2020-01-08T11:46:40 #kisslinux i-ii don't know yet :3
2020-01-08T11:46:43 #kisslinux cool
2020-01-08T11:46:51 #kisslinux because muh games :/
2020-01-08T11:46:51 #kisslinux give it a whirl see what you think
2020-01-08T11:47:04 #kisslinux i am still rewriting init in emacs lisp
2020-01-08T11:47:09 #kisslinux brb
2020-01-08T12:12:25 #kisslinux i did an Alpine install -- drivers seem to load okay
2020-01-08T12:12:45 #kisslinux i'll copy over that config and try KISS again
2020-01-08T12:36:07 #kisslinux icyphox: might also help
2020-01-08T12:36:08 #kisslinux https://wiki.gentoo.org/wiki/Linux_firmware
2020-01-08T12:55:29 #kisslinux thanks lieuxnoir i've tried all of that :)
2020-01-08T12:55:43 #kisslinux funnily enough, the same config works fine on Alpine
2020-01-08T12:55:59 #kisslinux it's on KISS that shit hits the fan
2020-01-08T13:03:56 #kisslinux how'd you copy the config on Alpine?
2020-01-08T13:05:41 #kisslinux You might ask in #alpine, but IIRC there is a way to get a kconfig directly from inspecting the file in /boot if the kernel is built with that feature
2020-01-08T13:06:40 #kisslinux The thing is we don't know what patches they may have applied to that kernel too. Not sure if it will work to just take all of the options they have and try to build a vanilla kernel
2020-01-08T13:06:44 #kisslinux But you could try
2020-01-08T13:06:52 #kisslinux mine was taken from Arch through localyesconfig
2020-01-08T13:07:55 #kisslinux then i just strip it from time to time
2020-01-08T13:07:58 #kisslinux icyphox: you did try simply make defconfig before right
2020-01-08T13:08:32 #kisslinux lieuxnoir: the config-lts file was in /boot
2020-01-08T13:09:26 #kisslinux oh my bad, it's not the "same" config, but froma quick glance it looked about the same as my KISS config
2020-01-08T13:09:37 #kisslinux adamantium: yes
2020-01-08T13:09:48 #kisslinux icyphox: did you modify it before compiling it on KISS?
2020-01-08T13:09:58 #kisslinux modify the config?
2020-01-08T13:09:58 #kisslinux ofc
2020-01-08T13:11:06 #kisslinux what was the problem?
2020-01-08T13:11:26 #kisslinux mine had everything baked in to save me from trouble
2020-01-08T13:11:49 #kisslinux including the extra firmware files which wasn't in the kernel
2020-01-08T13:13:44 #kisslinux yeah i tried that
2020-01-08T13:14:04 #kisslinux it still complains about "no valid firmware found!" or something to that effect
2020-01-08T13:14:52 #kisslinux maybe try another config from another distro, perhaps?
2020-01-08T13:23:23 #kisslinux lieuxnoir: yeah i'm going to do that
2020-01-08T13:23:36 #kisslinux btw, how do i uninstall grub
2020-01-08T13:23:53 #kisslinux kiss r grub
?
2020-01-08T13:23:58 #kisslinux i want to just use efistub
2020-01-08T13:24:16 #kisslinux no, but the /boot/grub folder remains
2020-01-08T13:24:22 #kisslinux and it still boots into grub
2020-01-08T13:24:25 #kisslinux yeah, i did that days ago
2020-01-08T13:24:28 #kisslinux also, i'm on alpine
2020-01-08T13:24:46 #kisslinux remove the boot entry manually
2020-01-08T13:24:53 #kisslinux using?
2020-01-08T13:25:05 #kisslinux efibootmgr -Bb 00something
2020-01-08T13:25:11 #kisslinux ah
2020-01-08T13:25:45 #kisslinux hmm
2020-01-08T13:25:55 #kisslinux err
2020-01-08T13:26:08 #kisslinux i've got 3 entries that sound the same
2020-01-08T13:26:30 #kisslinux EFI Hard Drive, Notebook Hard Drive and Internal Hard Disk
2020-01-08T13:26:31 #kisslinux lol
2020-01-08T13:27:30 #kisslinux no entry named GRUB or something?
2020-01-08T13:27:35 #kisslinux nothing
2020-01-08T13:27:39 #kisslinux what's the verbose output looks like?
2020-01-08T13:27:51 #kisslinux verbose is bugged
2020-01-08T13:28:13 #kisslinux oh
2020-01-08T13:28:28 #kisslinux i can do nothing about that
2020-01-08T13:28:35 #kisslinux yeah
2020-01-08T13:28:36 #kisslinux lol
2020-01-08T13:29:01 #kisslinux arch still uses an older efibootmgr which still works fine
2020-01-08T13:31:31 #kisslinux those entries are added automatically, your bios/efi does it icyphox
2020-01-08T13:31:48 #kisslinux though you can patch and build it yourself manually
2020-01-08T13:33:08 #kisslinux you could delete them but there is no point really
2020-01-08T13:34:45 #kisslinux you could also check if your device has good UEFI implementation
2020-01-08T13:35:17 #kisslinux i've encountered laptops before which doesn't respect boot entries made with efibootmgr
2020-01-08T13:35:25 #kisslinux they won't appear on the BIOS lol
2020-01-08T14:06:51 #kisslinux lieuxnoir: no my system's UEFI behaves alright haha
2020-01-08T14:07:16 #kisslinux Aarg: yeah, i thought as much. so deleting them should be alright?
2020-01-08T14:08:43 #kisslinux icyphox: then the system booting GRUB questions me
2020-01-08T14:10:32 #kisslinux probably, it just auto-detects it inside your Internal Hard Disk
2020-01-08T14:12:03 #kisslinux hm
2020-01-08T14:12:05 #kisslinux btw
2020-01-08T14:12:13 #kisslinux blkid isn't showing me a PARTUUIF
2020-01-08T14:12:18 #kisslinux PARTUUID*
2020-01-08T14:12:45 #kisslinux what do i use in efibootmgr?
2020-01-08T14:14:28 #kisslinux if blkid isn't showing you a PARTUUID then you need to create a partition and install a filesystem on to it
2020-01-08T14:14:48 #kisslinux cfdisk /dev/sda if using bios
2020-01-08T14:14:58 #kisslinux cgdisk /dev/sda if using uefi
2020-01-08T14:15:10 #kisslinux MBR if bios, GPT if uefi
2020-01-08T14:15:22 #kisslinux create one partition write quit
2020-01-08T14:15:32 #kisslinux that's mighty weird. i dl have a partition with an fs
2020-01-08T14:15:35 #kisslinux do*
2020-01-08T14:15:36 #kisslinux then mkfs.ext4 /dev/sda1
2020-01-08T14:15:47 #kisslinux then mount /dev/sda1 /mnt
2020-01-08T14:15:50 #kisslinux and get to work
2020-01-08T14:15:51 #kisslinux alpine's setup script created these
2020-01-08T14:16:04 #kisslinux i dont know alpine
2020-01-08T14:16:14 #kisslinux this is #kisslinux dude lol
2020-01-08T14:16:50 #kisslinux well yeah okay
2020-01-08T14:16:54 #kisslinux Okay, I'm sorry, I know you're trying to get kiss to just work lol
2020-01-08T14:17:03 #kisslinux So what are you trying to do exactly at this point
2020-01-08T14:18:41 #kisslinux nvm i don't need to bother with efibootmgr right now
2020-01-08T14:19:07 #kisslinux i'll try copying over the kernel config and doing KISS again
2020-01-08T14:22:34 #kisslinux if GPT, the ESP should be fat32, not ext4
2020-01-08T14:22:56 #kisslinux Yeah
2020-01-08T14:23:06 #kisslinux Avoid uefi if at all possible man
2020-01-08T14:23:15 #kisslinux most bios have a toggle back to legacy option
2020-01-08T14:23:23 #kisslinux Keeps your system so much simpler
2020-01-08T14:25:03 #kisslinux hey konimex wanna try my systemE overlay
2020-01-08T14:25:28 #kisslinux I got a working elisp rc.boot script lmao
2020-01-08T14:25:30 #kisslinux I already have an llvm overlay on test so for now, nope
2020-01-08T14:25:55 #kisslinux also not really a fan of emacs so there's that
2020-01-08T14:25:59 #kisslinux lol
2020-01-08T14:26:32 #kisslinux I understand. It's just hillarious to me, the whole thing
2020-01-08T14:27:48 #kisslinux I use Emacs, not a fan, I want a better Emacs, but can't find one.
2020-01-08T14:27:54 #kisslinux There are many Emacses, in theory.
2020-01-08T14:28:04 #kisslinux So I'm stuck with gnu Emacs
2020-01-08T14:28:55 #kisslinux I learned it on evil mode coming from vim, but eventually found I don't like modal editing as much I thought, and use default now, though I swap control and alt on the left side of the keyboard, makes Emacs much more ergonomic that way.
2020-01-08T14:35:00 #kisslinux <Aarg[m]> icyphox: you probably can delete all entries but it's your risk
2020-01-08T14:35:22 #kisslinux omg this irc client birch do be kinda ontop
2020-01-08T14:35:29 #kisslinux <Aarg[m]> I just deleted all the entries I had and some of them got added again
2020-01-08T14:35:31 #kisslinux as in very ontop
2020-01-08T14:37:20 #kisslinux adamantium: oh, i thought legacy was trash and UEFI was the new cool
2020-01-08T14:37:24 #kisslinux ok i'll revert
2020-01-08T14:37:37 #kisslinux <Aarg[m]> Regarding UUID, since it's just the commandline handed to the kernel, maybe other properties work too
2020-01-08T14:37:42 #kisslinux <Aarg[m]> Maybe even labels
2020-01-08T14:37:52 #kisslinux Aarg[m]: yeah they keep popping back
2020-01-08T14:38:31 #kisslinux <Aarg[m]> Ah
2020-01-08T14:46:35 #kisslinux you can just use root=/dev/sdX
2020-01-08T14:46:47 #kisslinux icyphox
2020-01-08T14:47:48 #kisslinux root=LABEL= works too
2020-01-08T15:04:42 #kisslinux TwistedFate: No poettering ever. KISS today is what it'll always be (No moving to Wayland etc as an example)
2020-01-08T15:04:53 #kisslinux It's one of the reasons why I made KISS. ;)
2020-01-08T15:05:08 #kisslinux icyphox: Update efivar, I should have fixed the bugged output.
2020-01-08T15:05:23 #kisslinux It was compiler issues in efivar causing issues in efibootmgr.
2020-01-08T15:07:14 #kisslinux polymer: ?!?!?!?
2020-01-08T15:10:25 #kisslinux https://www.phoronix.com/scan.php?page=news_item&px=Systemd-Facebook-OOMD
2020-01-08T15:10:25 #kisslinux Oh boy. More Facebook
2020-01-08T15:11:31 #kisslinux dylanaraps: cool! i'm starting a KISS install fresh. going to use Alpine's kernel config.
2020-01-08T15:11:36 #kisslinux because that worked.
2020-01-08T15:11:57 #kisslinux Sounds good :)
2020-01-08T15:12:55 #kisslinux Once you get a working config you can go back and trim the fat too.
2020-01-08T15:13:23 #kisslinux (Disabling anything you don't need per se)
2020-01-08T15:13:51 #kisslinux yep
2020-01-08T15:15:53 #kisslinux No one asked lennart to do all this :(
2020-01-08T15:16:24 #kisslinux His employer did. ;)
2020-01-08T15:17:28 #kisslinux his working at redhat right?
2020-01-08T15:19:46 #kisslinux is this just a "systemd sucks" discussion or did lennart do something
2020-01-08T15:19:51 #kisslinux i'm ootl
2020-01-08T15:24:37 #kisslinux Boot0000* KISS HD(1,GPT,7be111b7-e41a-452d-9c58-c042c54e85d0,0x800,0xfa000)/File(vmlinuz)r.o.o.t.=.P.A.R.T.U.U.I.D.=.6.7.2.c.7.7.9.1.-.f.3...r.w.4.2.9.b.-.a.1.3.c.-.1.6.3.b.0.8.b.e.c.5.4.7
2020-01-08T15:24:49 #kisslinux see the rw just in the middle of the UUID?
2020-01-08T15:25:11 #kisslinux my /proc/cmdline is also truncated where the rw starts
2020-01-08T15:25:14 #kisslinux so weird
2020-01-08T16:19:16 #kisslinux Hi guys
2020-01-08T16:20:05 #kisslinux I have a issue when compiling the Linux kernel on my amd machine
2020-01-08T16:22:20 #kisslinux hey guys, i know Emacs is old bloat but if you want to follow my work of rolling my own kiss-init using Emacs lisp and emacs I now have a repo for that
2020-01-08T16:22:30 #kisslinux https://github.com/a-schaefers/systemE
2020-01-08T16:25:08 #kisslinux When i run the make i get this error
2020-01-08T16:25:12 #kisslinux kernel/exit.o: warning: objtool: __x64_sys_exit_group()+0x14: unreachable instruction
2020-01-08T16:26:15 #kisslinux pulga: Weird.
2020-01-08T16:28:27 #kisslinux Any settings (gcc, binutils, etc) changed?
2020-01-08T16:28:43 #kisslinux Did you change your CFLAGS, LDFLAGS etc too?
2020-01-08T16:29:35 #kisslinux Do you have: "[ ] Compile-time stack metadata validation" enabled?
2020-01-08T16:29:53 #kisslinux Where did you get your .config from? Did you create it yourself?
2020-01-08T16:31:20 #kisslinux Is the Slackware huge config file
2020-01-08T16:31:52 #kisslinux I not changed the cflags
2020-01-08T16:32:23 #kisslinux It's an issue with the config.
2020-01-08T16:32:31 #kisslinux Specifically something it enables.
2020-01-08T16:33:15 #kisslinux I see
2020-01-08T16:33:31 #kisslinux I Will check até nigth for the compile time option
2020-01-08T16:33:37 #kisslinux At*
2020-01-08T16:33:43 #kisslinux I'd do 'make defconfig' and 'make menuconfig', enabling anything needed for your hardware.
2020-01-08T16:33:51 #kisslinux (rm the .config first)
2020-01-08T16:34:10 #kisslinux You can find the required options for your hardware online too.
2020-01-08T16:34:31 #kisslinux Remember: The drivers needed to solely to boot the machine need to be
2020-01-08T16:34:38 #kisslinux '*' and not 'm'
2020-01-08T16:34:55 #kisslinux This includes filesystem drivers, disk controller drivers etc.
2020-01-08T16:35:08 #kisslinux s/needed to/needed/
2020-01-08T16:35:34 #kisslinux '' translates to 'y' in the .config file itself. In 'menuconfig' they're ''.
2020-01-08T16:36:40 #kisslinux Also see: https://github.com/torvalds/linux/blob/master/tools/objtool/Documentation/stack-validation.txt#L205
2020-01-08T16:37:23 #kisslinux The error happens due to stack validation being enabled in Slackware's .config.
2020-01-08T16:40:52 #kisslinux Thanks for the gelo dylanaraps
2020-01-08T16:41:17 #kisslinux np
2020-01-08T16:46:42 #kisslinux dylanaraps: https://gitlab.alpinelinux.org/alpine/aports/issues/7374
2020-01-08T16:46:56 #kisslinux maybe you want to consider this for the kiss baselayout (/etc/profile)
2020-01-08T16:52:27 #kisslinux Aarg: I don't know if this will make a difference with any software.
2020-01-08T16:53:53 #kisslinux I don't know if anything is locale aware in KISS as we don't use intltool/gettext/icu/etc.
2020-01-08T16:55:35 #kisslinux Do you have any use for it yourself or cases where setting '$LANG' fixed an issue?
2020-01-08T16:56:06 #kisslinux yeah, tmux needs LANG
2020-01-08T16:56:12 #kisslinux that's why I discovered it
2020-01-08T16:57:10 #kisslinux without it, tmux will only display ascii(?)
2020-01-08T17:10:30 #kisslinux Musl support some kind of locale defs?
2020-01-08T17:27:34 #kisslinux 'tmux -u' and there's a config option as well for utf8.
2020-01-08T17:27:52 #kisslinux pulgovisk: Yes, partially.
2020-01-08T17:28:11 #kisslinux Aarg: There's no harm in setting it regardless though. :P
2020-01-08T17:28:18 #kisslinux Will fix it later today.
2020-01-08T17:28:59 #kisslinux yeah, that was the idea, might as well add it
2020-01-08T18:53:39 #kisslinux dylanaraps: I heard the way we "seed random" is not actually doing anything
2020-01-08T18:54:24 #kisslinux cat /var/random.seed > /dev/urandom
2020-01-08T18:54:35 #kisslinux Anyone know if this actually works?/
2020-01-08T19:34:33 #kisslinux You can try 'cat /proc/sys/kernel/random/entropy_avail' right after boot.
2020-01-08T19:34:51 #kisslinux > It is also possible to write to /dev/random. This allows any user to mix random data into the pool.
2020-01-08T19:34:56 #kisslinux https://en.wikipedia.org/wiki//dev/random
2020-01-08T19:35:36 #kisslinux I don't know if this also applies to /dev/urandom.
2020-01-08T19:35:41 #kisslinux I'll look for a source on this.
2020-01-08T19:37:39 #kisslinux > Writing to /dev/random or /dev/urandom will update the entropy pool with the data written, but this will not result in a higher entropy count. This means that it will impact the contents read from both files, but it will not make reads from /dev/random faster.
2020-01-08T19:37:53 #kisslinux > ... This differs from writing to /dev/random or /dev/urandom, which only adds some data but does not increment the entropy count.
2020-01-08T19:37:57 #kisslinux https://linux.die.net/man/4/urandom
2020-01-08T19:38:46 #kisslinux Also, this page shows how to seed the generator and it is exactly the same method we use.
2020-01-08T19:40:02 #kisslinux (Though we hardcode the pool size)
2020-01-08T19:40:45 #kisslinux adamantium:
2020-01-08T19:42:10 #kisslinux brb
2020-01-08T19:44:51 #kisslinux If you're wondering why the pool size is hardcoded: https://wiki.archlinux.org/index.php/Random_number_generation
2020-01-08T19:45:10 #kisslinux > While Linux kernel 2.4 did have writable /proc entries for controlling the entropy pool size, in newer kernels only read_wakeup_threshold and write_wakeup_threshold are writable. The pool size is now hardcoded in kernel line 275 of /drivers/char/random.c
2020-01-08T19:45:42 #kisslinux > The kernel's pool size is given by INPUT_POOL_WORDS * OUTPUT_POOL_WORDS which makes, as already stated, 4096 bits.
2020-01-08T19:45:55 #kisslinux 4096 bits = 512 bytes (What we set it to)
2020-01-08T19:48:32 #kisslinux We use /dev/urandom over /dev/random so as to not block during boots. It was announced today that /dev/random in upcoming kernels won't block either so we'll eventually swap to it.
2020-01-08T19:49:01 #kisslinux The kernel for 4 years has actually seeded /dev/urandom itself in addition to our seeding: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e192be9d9a30555aae2ca1dc3aad37cba484cd4a
2020-01-08T19:49:49 #kisslinux This whole process is a fickle mess of conflicting and unclear information so if we are doing this wrongly I'd like to fix it.
2020-01-08T19:50:11 #kisslinux If you have any experience here it'd be appreciated. :)
2020-01-08T19:51:49 #kisslinux The kernel also warns about reading /dev/urandom without entropy. https://patchwork.kernel.org/patch/9173499/
2020-01-08T19:56:14 #kisslinux dylanaraps: I don't have a bouncer I missed your message when testing stuff
2020-01-08T19:56:23 #kisslinux https://freenode.logbot.info/kisslinux/20200108
2020-01-08T19:56:30 #kisslinux Logs are public :)
2020-01-08T19:56:38 #kisslinux Scroll down to the bottom.
2020-01-08T19:57:22 #kisslinux thanks
2020-01-08T20:00:18 #kisslinux Regarding: https://github.com/kisslinux/init/pull/5
2020-01-08T20:00:19 #kisslinux Got it. dylanaraps I no nothing about this subject. fickle mess it is, then.
2020-01-08T20:00:30 #kisslinux know*
2020-01-08T20:00:36 #kisslinux I'll boot my system with your changes for a little to see how it goes.
2020-01-08T20:00:49 #kisslinux Yup...
2020-01-08T20:01:06 #kisslinux k
2020-01-08T20:01:12 #kisslinux good luck and don't blame me if it explodes
2020-01-08T20:01:28 #kisslinux Where did you hear about our seeding process possibly not working?
2020-01-08T20:01:51 #kisslinux Just a person in #emacs who was looking at my elisp rewrite of it
2020-01-08T20:02:15 #kisslinux I think he is a knowledgable person, though, but from what you shared, I think he's probably wrong
2020-01-08T20:02:18 #kisslinux Systemd works the same more or less.
2020-01-08T20:02:20 #kisslinux https://github.com/systemd/systemd/blob/master/src/random-seed/random-seed.c
2020-01-08T20:02:25 #kisslinux It also writes to /dev/urandom.
2020-01-08T20:02:39 #kisslinux cool
2020-01-08T20:02:44 #kisslinux All non-systemd distributions do it using our method or similar.
2020-01-08T20:02:45 #kisslinux So does systemE
2020-01-08T20:02:52 #kisslinux =)
2020-01-08T20:03:13 #kisslinux heh
2020-01-08T20:03:24 #kisslinux BTW I think my Emacs init is faster than shell and i'm not sure how thats possible.
2020-01-08T20:03:31 #kisslinux lol
2020-01-08T20:03:35 #kisslinux Interesting
2020-01-08T20:03:47 #kisslinux It might be worth seeing if you do anything slightly differently.
2020-01-08T20:03:48 #kisslinux Could be in my head.
2020-01-08T20:04:04 #kisslinux I suppose i took a few shortcuts. That's what it is.
2020-01-08T20:04:13 #kisslinux I also run with a modified rc.boot :P
2020-01-08T20:04:14 #kisslinux Like I didn't mess with luks because I dont use that stuff
2020-01-08T20:04:21 #kisslinux That's a mess too.
2020-01-08T20:04:30 #kisslinux I had to write a parser for crypttab in POSIX shell lol
2020-01-08T20:06:19 #kisslinux OK. Modified my scripts.
2020-01-08T20:06:27 #kisslinux Will run with it for a few days.
2020-01-08T20:07:19 #kisslinux https://marc.info/?l=linux-netdev&m=157851343312263&w=2 sent a patch to make yacc usage in iproute2 POSIX compatible
2020-01-08T20:07:42 #kisslinux cool
2020-01-08T20:07:55 #kisslinux Nice
2020-01-08T20:07:59 #kisslinux Will they accept it though :(
2020-01-08T20:08:02 #kisslinux ?(
2020-01-08T20:08:03 #kisslinux ?*
2020-01-08T20:08:04 #kisslinux no idea
2020-01-08T20:08:19 #kisslinux It seems hard to get these specific fixes merged.
2020-01-08T20:08:28 #kisslinux if they don't I'll try with a less intrusive byacc compatibility patch
2020-01-08T20:09:44 #kisslinux I'm also not exactly 100% sure it's POSIX compatible, but it does only use POSIX flags and openbsd yacc handled it and I didn't notice anything left that seemed non-POSIX, but I also don't know yacc so idk
2020-01-08T20:10:15 #kisslinux not sure how much flex adds over POSIX lex but maybe it'd be worth attempting a followup POSIX lex compatibility patch if this one is accepted
2020-01-08T20:10:22 #kisslinux Yeah
2020-01-08T20:10:34 #kisslinux adamantium: Does suckless killall5 accept '-s'?
2020-01-08T20:10:59 #kisslinux let me see
2020-01-08T20:10:59 #kisslinux if suckless was actually suckless they wouldn't provide a killall5 ;)
2020-01-08T20:11:12 #kisslinux It's so handy for boot scripts though
2020-01-08T20:11:54 #kisslinux > goto do_it_now;
2020-01-08T20:11:59 #kisslinux 10/10 code in busybox
2020-01-08T20:12:01 #kisslinux dylanaraps: usage: killall5 [-o pid1,pid2,..,pidN] [-s signal]
2020-01-08T20:12:12 #kisslinux god busybox code is so gross
2020-01-08T20:12:13 #kisslinux Also: do_it_sooner:
2020-01-08T20:12:29 #kisslinux do_it_sooner is before do_it_now
2020-01-08T20:12:33 #kisslinux 10/10 code here
2020-01-08T20:12:41 #kisslinux adamantium: Thanks
2020-01-08T20:12:51 #kisslinux We need to swap to '-s TERM' and '-s KILL'.
2020-01-08T20:12:52 #kisslinux looking at toybox code when I basically don't even know C and it still all makes sense and then I try looking at busybox code and my mind completely melts
2020-01-08T20:13:00 #kisslinux dylanaraps: k
2020-01-08T20:13:04 #kisslinux Busybox needs '-TERM' and '-KILL'.
2020-01-08T20:13:13 #kisslinux They both accept '-s TERM' etc though.
2020-01-08T20:13:19 #kisslinux Nice catch
2020-01-08T20:14:01 #kisslinux busybox kill.c handles kill, killall and killall5.
2020-01-08T20:14:03 #kisslinux Hence the mess.
2020-01-08T20:14:20 #kisslinux kill is a shell builtin as well.
2020-01-08T20:14:22 #kisslinux heh
2020-01-08T20:14:25 #kisslinux it's done
2020-01-08T20:14:54 #kisslinux Thanks
2020-01-08T20:15:57 #kisslinux I might port killall5 to pure shell fyi.
2020-01-08T20:16:03 #kisslinux cool
2020-01-08T20:16:06 #kisslinux It's simply a loop over /proc.
2020-01-08T20:16:11 #kisslinux I can't stand shell you're a mad man
2020-01-08T20:16:31 #kisslinux It's my favourite language for some reason
2020-01-08T20:16:34 #kisslinux shell is the bexst
2020-01-08T20:17:02 #kisslinux you wrote wal so it better be your favorite. why did you make pywal after that? Then you decided you like shell better I take it?
2020-01-08T20:17:06 #kisslinux nothing provides a thrill quite like doing a hacky bullshit thing in shell that works
2020-01-08T20:17:47 #kisslinux I think shell with outsourcing expensive things to awk can be very powerful
2020-01-08T20:17:57 #kisslinux But I hate debugging it and there's just too many quirks
2020-01-08T20:19:14 #kisslinux I wanted to learn Python I guess.
2020-01-08T20:19:22 #kisslinux Now I know that I hate Python.
2020-01-08T20:20:08 #kisslinux You've probably never seen shell like this: https://termbin.com/o2mcx
2020-01-08T20:20:13 #kisslinux Heh. Was fun to write.
2020-01-08T20:24:37 #kisslinux mystifying
2020-01-08T20:25:03 #kisslinux Basically you can chain expressions inside (( )) using a comma.
2020-01-08T20:25:12 #kisslinux You can also use (( )) as the function body.
2020-01-08T20:25:42 #kisslinux Then, 'expression ? true : false' can be chained together for conditions.
2020-01-08T20:27:06 #kisslinux No loops though :(
2020-01-08T20:27:33 #kisslinux You could loop by embedding one with $() though you'd have to print an integer (and only an integer))
2020-01-08T20:28:51 #kisslinux I suppose your love for shell script could be like my love for emacs lisp
2020-01-08T20:28:58 #kisslinux both people say are terrible languages
2020-01-08T20:29:12 #kisslinux but so much fun
2020-01-08T20:29:15 #kisslinux Yup
2020-01-08T20:29:24 #kisslinux People just suck at both langs :^)
2020-01-08T20:33:01 #kisslinux dadayyyyum
2020-01-08T20:38:31 #kisslinux I would like to see another boot loader other than grub, what do you guys recommend. Is lilo still a thing
2020-01-08T20:38:37 #kisslinux ok after very brief looking into this
2020-01-08T20:38:41 #kisslinux a follow up POSIX lex patch will not be occuring
2020-01-08T20:38:45 #kisslinux or alpine uses syslinux ...
2020-01-08T20:39:23 #kisslinux or maybe the funtoo's "boot-update" + grub legacy
2020-01-08T20:39:31 #kisslinux lilo isn't in development but works.
2020-01-08T20:39:37 #kisslinux elilo exists also for EFI
2020-01-08T20:39:42 #kisslinux I'd like to see a "simple" alternative to grub is all ......
2020-01-08T20:39:56 #kisslinux grub generated code is nasty too, and bugs me
2020-01-08T20:40:14 #kisslinux Grub is just the default. There's endless documentation for it online and the single package supports both BIOS and UEFI.
2020-01-08T20:40:18 #kisslinux agreed
2020-01-08T20:40:18 #kisslinux All bootloaders suck tbh.
2020-01-08T20:40:21 #kisslinux Yep
2020-01-08T20:40:39 #kisslinux Emacs bootloader perhaps is due
2020-01-08T20:40:41 #kisslinux efistubs are the best option for those using EFI though.
2020-01-08T20:40:53 #kisslinux Only if they work with your motherboard though.
2020-01-08T20:40:53 #kisslinux Right
2020-01-08T20:40:59 #kisslinux I just hate uefi for so many reasons
2020-01-08T20:41:02 #kisslinux As do I
2020-01-08T20:41:02 #kisslinux 1. it's not robust
2020-01-08T20:41:07 #kisslinux You cannot raid your esp
2020-01-08T20:41:16 #kisslinux that is enough. it sucks then
2020-01-08T20:41:25 #kisslinux that's why it's not used in server space
2020-01-08T20:41:40 #kisslinux I use BIOS with a single partition for the whole system.
2020-01-08T20:41:41 #kisslinux 2. shitty uefi bios implementations.
2020-01-08T20:41:44 #kisslinux Literally just /
2020-01-08T20:42:44 #kisslinux 3. secure boot is complex as hell and worthless except to prevent evil maid??????? get a dog
2020-01-08T20:43:03 #kisslinux Yup
2020-01-08T20:43:04 #kisslinux dylanaraps: I have the same disk layout as you.
2020-01-08T20:43:09 #kisslinux lol
2020-01-08T20:43:14 #kisslinux It's simple :P
2020-01-08T20:43:17 #kisslinux I wasn't aware that there were motherboards that efistub doesn't work with?
2020-01-08T20:43:20 #kisslinux my security policy is encrypt files that should be encrypted
2020-01-08T20:43:27 #kisslinux gnupg is your friend
2020-01-08T20:43:33 #kisslinux A lot of motherboards have super shitty firmware.
2020-01-08T20:44:07 #kisslinux My old PC's wiped my added EFI entries every boot for example.
2020-01-08T20:44:09 #kisslinux but what about efistub would make it not work where other EFI bootloaders do on those motherboards with shitty firmware?
2020-01-08T20:44:30 #kisslinux Windows is their only friend
2020-01-08T20:44:37 #kisslinux Beats me really.
2020-01-08T20:44:49 #kisslinux bioses suck worse than boot loaders
2020-01-08T20:45:08 #kisslinux if not windows then rm
2020-01-08T20:45:13 #kisslinux Wouldn't surprise me lol
2020-01-08T20:45:58 #kisslinux We're talking shitty firmware which is unlikely to every see updates. So long as it boots Windows it's fine.
2020-01-08T20:46:01 #kisslinux s/every/ever
2020-01-08T20:52:07 #kisslinux https://termbin.com/7vtm
2020-01-08T20:52:21 #kisslinux This is killall5 in POSIX shell minus '-o'.
2020-01-08T20:52:28 #kisslinux about the byacc changes being hard to merge from before, I do have more hope for this one because it makes the usage fully POSIX compatible instead of going from supporting bison to bison and byacc but still nothing else outside of that
2020-01-08T20:52:41 #kisslinux Yeah
2020-01-08T20:53:00 #kisslinux since when can you set a positional parameter like that?
2020-01-08T20:53:11 #kisslinux I don't think it works
2020-01-08T20:53:22 #kisslinux You're right
2020-01-08T20:53:34 #kisslinux I haven't tested this yet for obvious reasons.
2020-01-08T20:53:55 #kisslinux test it inside of systemd-nspawn
2020-01-08T20:54:08 #kisslinux case "$1" in '') set -- TERM; esac
2020-01-08T20:54:08 #kisslinux ;)
2020-01-08T20:54:12 #kisslinux https://termbin.com/gc1l4
2020-01-08T20:54:23 #kisslinux Or I could use a variable. :P
2020-01-08T20:54:35 #kisslinux I'll test it to shutdown my system of course.
2020-01-08T20:54:41 #kisslinux This is how we do things here. :^)
2020-01-08T20:54:51 #kisslinux never, they're a sin 😏
2020-01-08T20:55:07 #kisslinux oops
2020-01-08T20:55:12 #kisslinux This is broken
2020-01-08T20:55:13 #kisslinux Found a bug
2020-01-08T20:55:24 #kisslinux '$pid' will equal '/proc/XXX' and not 'XXX.
2020-01-08T20:55:27 #kisslinux HEH
2020-01-08T20:56:50 #kisslinux is the -d check necessary? can't that glob only match directories?
2020-01-08T20:57:02 #kisslinux It's to check if the glob fails.
2020-01-08T20:57:12 #kisslinux ah right, forgot about that
2020-01-08T20:57:29 #kisslinux It's also needed now for other reasons.
2020-01-08T20:57:30 #kisslinux Hang on
2020-01-08T20:57:37 #kisslinux https://termbin.com/tbo8
2020-01-08T20:57:47 #kisslinux The glob is now simply '*' as I cd to /proc.
2020-01-08T20:57:55 #kisslinux to avoid having to run it each time the loop occurs maybe you could just check [ -d /proc/1 ] before the loop?
2020-01-08T20:58:30 #kisslinux Even simpler would be 'cd /proc || exit 0' at the start.
2020-01-08T20:58:55 #kisslinux If proc exists it must have contents no?
2020-01-08T20:59:21 #kisslinux I mean I wouldn't think that those checks are meant for systems where everything is correct?
2020-01-08T20:59:36 #kisslinux so if you can't assume /proc you probably can't assume it has subdirectories if it does exist
2020-01-08T20:59:43 #kisslinux Yu
2020-01-08T20:59:44 #kisslinux p
2020-01-08T21:00:16 #kisslinux https://termbin.com/s97h
2020-01-08T21:00:19 #kisslinux Now it's good.
2020-01-08T21:00:23 #kisslinux brb testing it
2020-01-08T21:00:37 #kisslinux also in current form someone can pass just the signal without a -, maybe remove the ##- from the reference to sig and assign sig like sig=${1:--TERM}
2020-01-08T21:00:56 #kisslinux That's the idea.
2020-01-08T21:01:08 #kisslinux You assign it without '-' though it has a check to strip it if provided.
2020-01-08T21:01:29 #kisslinux I thought the goal was to pass it using a - like you would with killall5?
2020-01-08T21:01:59 #kisslinux suckless killall5 doesn't support -SIG actually.
2020-01-08T21:02:05 #kisslinux oh
2020-01-08T21:02:06 #kisslinux '-s SIG' is the portable way apparently.
2020-01-08T21:02:20 #kisslinux busybox doesn't support SIG without '-'.
2020-01-08T21:02:39 #kisslinux but if either -s SIG or -SIG is requires isn't allowing just SIG wrong either way?
2020-01-08T21:02:42 #kisslinux This function is solely for internal use in our shutdown script so whatever is fine.
2020-01-08T21:02:51 #kisslinux fair enough
2020-01-08T21:04:37 #kisslinux I feel like the cd failing is more of an exit 1 kinda situation than an exit 0?
2020-01-08T21:06:29 #kisslinux according to POSIX only -s SIG is mandatory for kill, -SIG is XSI, so you should switch it to use -s SIG for kill
2020-01-08T21:06:44 #kisslinux I'm not even sure if shutdown should be aborted.
2020-01-08T21:06:45 #kisslinux Will do.
2020-01-08T21:07:39 #kisslinux oh I didn't even mean exit like quit the script, I assumed you'd change that to a return when you made it a function
2020-01-08T21:07:58 #kisslinux Yup
2020-01-08T21:08:01 #kisslinux My bad
2020-01-08T21:08:13 #kisslinux I just mean that for killall5 I'd expect not being able to cd to /proc would be a failure not a successful exit
2020-01-08T21:08:29 #kisslinux Problem is that the next command will just overwrite the exit status.
2020-01-08T21:08:41 #kisslinux I'll make it output a warning and continue.
2020-01-08T21:09:39 #kisslinux also, maybe for the loop you can do for pid in / and then pid=${pid%/} and then when you do the case add an option to check if it's ''
2020-01-08T21:09:48 #kisslinux * also, maybe for the loop you can do for pid in / and then pid=${pid%/} and then when you do the case add an option to check if it's ''
2020-01-08T21:09:55 #kisslinux * also, maybe for the loop you can do for pid in / and then pid=${pid%/} and then when you do the case add an option to check if it's ''
2020-01-08T21:10:07 #kisslinux I can't figure out how to make this formatting not fuck itslef
2020-01-08T21:10:11 #kisslinux itself*
2020-01-08T21:10:12 #kisslinux dylanaraps: speaking of killall5 ... in my shutdown.el script, I can't get past killall5 -s TERM , like the script just stops running
2020-01-08T21:10:18 #kisslinux am i killing my shutdown script
2020-01-08T21:10:19 #kisslinux lol
2020-01-08T21:10:25 #kisslinux Possibly lol
2020-01-08T21:10:27 #kisslinux wtf
2020-01-08T21:10:35 #kisslinux Try making it print after killall5
2020-01-08T21:10:36 #kisslinux point is add a / to the glob and then strip it, and use the case to make sure the glob isn't a *, and then you can remove the -d check
2020-01-08T21:10:43 #kisslinux dylanaraps: I did try that
2020-01-08T21:10:45 #kisslinux It wont print
2020-01-08T21:10:58 #kisslinux See emacs spawns proccesses
2020-01-08T21:11:00 #kisslinux It's being killed then
2020-01-08T21:11:01 #kisslinux lol
2020-01-08T21:11:18 #kisslinux grrrr
2020-01-08T21:11:22 #kisslinux I will find a way
2020-01-08T21:11:35 #kisslinux You can use '-o PID' to tell it to ignore Emacs' process group.
2020-01-08T21:12:00 #kisslinux E5ten: Will do
2020-01-08T21:12:10 #kisslinux also what's -1?
2020-01-08T21:12:26 #kisslinux All processes which aren't 1.
2020-01-08T21:12:27 #kisslinux I should be able to call killall5 in a way that will not kill Emacs
2020-01-08T21:12:32 #kisslinux Yes
2020-01-08T21:12:34 #kisslinux ah, cool
2020-01-08T21:12:37 #kisslinux if shell can do it
2020-01-08T21:12:46 #kisslinux See my message above adamantium
2020-01-08T21:12:54 #kisslinux > You can use '-o PID' to tell it to ignore Emacs' process group.
2020-01-08T21:13:10 #kisslinux killall5 has an -o ?
2020-01-08T21:13:16 #kisslinux oh ok i see it
2020-01-08T21:13:37 #kisslinux thx
2020-01-08T21:13:40 #kisslinux might have to do that
2020-01-08T21:13:43 #kisslinux http://ix.io/26SO
2020-01-08T21:13:55 #kisslinux oof
2020-01-08T21:14:17 #kisslinux E5ten: I need to also ensure that the glob matches only integers.
2020-01-08T21:14:20 #kisslinux That was close
2020-01-08T21:14:26 #kisslinux ie /proc/tty exists.
2020-01-08T21:14:49 #kisslinux Heh
2020-01-08T21:14:50 #kisslinux Fixed
2020-01-08T21:14:52 #kisslinux [!0-9] in case
2020-01-08T21:15:17 #kisslinux I'm doing
2020-01-08T21:15:24 #kisslinux [0-9]*/
2020-01-08T21:15:48 #kisslinux but then a hypothetical dir like 1tty could exist lol
2020-01-08T21:15:57 #kisslinux I'm aware :^)
2020-01-08T21:15:58 #kisslinux OK
2020-01-08T21:16:06 #kisslinux Needs to be more r o b u s t
2020-01-08T21:16:17 #kisslinux http://ix.io/26SP
2020-01-08T21:16:42 #kisslinux oh I guess that can have the check for specifically * removed
2020-01-08T21:16:46 #kisslinux it'd be matched by the last thing
2020-01-08T21:16:54 #kisslinux Nice
2020-01-08T21:17:08 #kisslinux OK
2020-01-08T21:17:10 #kisslinux Now it's done.
2020-01-08T21:17:12 #kisslinux brb
2020-01-08T21:18:39 #kisslinux it'd be cool if POSIX guaranteed kill as a builtin so this could be 100% pure shell in any POSIX compliant shell lol
2020-01-08T21:18:48 #kisslinux It does doesn't it?
2020-01-08T21:18:51 #kisslinux OK
2020-01-08T21:19:00 #kisslinux I think it kills the script itself.
2020-01-08T21:19:05 #kisslinux I don't think it's guaranteed to be built in
2020-01-08T21:20:09 #kisslinux https://termbin.com/ofm2
2020-01-08T21:20:25 #kisslinux (emacs-pid)
2020-01-08T21:20:27 #kisslinux built in!
2020-01-08T21:20:29 #kisslinux :
2020-01-08T21:20:30 #kisslinux :D
2020-01-08T21:20:37 #kisslinux It kills my script as well.
2020-01-08T21:20:38 #kisslinux HM
2020-01-08T21:20:47 #kisslinux lmao
2020-01-08T21:20:59 #kisslinux We literally have the same issue doing two diff things
2020-01-08T21:22:07 #kisslinux (shell-command (concat "ubase-box killall5 -o " (emacs-pid)" -s TERM"))
2020-01-08T21:22:10 #kisslinux wish me luck
2020-01-08T21:22:16 #kisslinux heh
2020-01-08T21:23:28 #kisslinux brb
2020-01-08T21:23:32 #kisslinux added a bunch of echos
2020-01-08T21:23:46 #kisslinux hmm i am still here.
2020-01-08T21:23:52 #kisslinux "wrong type argument"
2020-01-08T21:23:56 #kisslinux lol
2020-01-08T21:23:58 #kisslinux lol
2020-01-08T21:24:12 #kisslinux You have " ()"
2020-01-08T21:24:18 #kisslinux Space in argument?
2020-01-08T21:24:19 #kisslinux Oh
2020-01-08T21:24:24 #kisslinux nvm
2020-01-08T21:24:33 #kisslinux (shell-command (concat "ubase-box killall5 -o " (format "%s" (emacs-pid)) " -s TERM"))
2020-01-08T21:24:37 #kisslinux Ah
2020-01-08T21:24:38 #kisslinux emacs-pid is an int
2020-01-08T21:24:41 #kisslinux needs to be a string
2020-01-08T21:24:45 #kisslinux this should work now
2020-01-08T21:24:50 #kisslinux brb again
2020-01-08T21:28:16 #kisslinux https://termbin.com/8dvb
2020-01-08T21:28:23 #kisslinux Alright. -o was the ticket
2020-01-08T21:28:26 #kisslinux It runs
2020-01-08T21:28:51 #kisslinux heres mines https://termbin.com/lyjo
2020-01-08T21:29:03 #kisslinux longest shebang in history btw
2020-01-08T21:29:34 #kisslinux nice
2020-01-08T21:30:25 #kisslinux it only powers off, needs to reboot and take an argument now
2020-01-08T21:30:59 #kisslinux My killall5 runs fine but I see no output in the tty on shutdown.
2020-01-08T21:31:19 #kisslinux What's weird is that all the pids still exist in the second run of killall5.
2020-01-08T21:31:30 #kisslinux https://termbin.com/8dvb
2020-01-08T21:31:38 #kisslinux Notice how the list is duplicated.
2020-01-08T21:31:46 #kisslinux Second iteration is with KILL.
2020-01-08T21:32:01 #kisslinux First iteration should have killed things though.
2020-01-08T21:32:32 #kisslinux The glob is in a shitty order too.
2020-01-08T21:32:35 #kisslinux I need to fix that.
2020-01-08T21:32:48 #kisslinux It doesn't go in order of value.
2020-01-08T21:33:00 #kisslinux Goes in order of first digit.
2020-01-08T21:33:06 #kisslinux not sure that's really fixable?
2020-01-08T21:33:14 #kisslinux 200 > 99
2020-01-08T21:33:18 #kisslinux isn't that just like how globs work
2020-01-08T21:33:21 #kisslinux Yes
2020-01-08T21:33:40 #kisslinux Is it an issue though?
2020-01-08T21:33:41 #kisslinux Hm
2020-01-08T21:34:05 #kisslinux I'm still wondering why everything still exists in /proc after kill TERM.
2020-01-08T21:36:02 #kisslinux OH
2020-01-08T21:36:06 #kisslinux I need to skip 0 as well.
2020-01-08T21:36:26 #kisslinux 0 is the kernel
2020-01-08T21:36:56 #kisslinux Though 0 doesn't exist in /proc.
2020-01-08T21:37:12 #kisslinux so it's not an issue then is it?
2020-01-08T21:37:23 #kisslinux No
2020-01-08T21:37:38 #kisslinux but either way since the dirs in /proc don't have leading 0s the glob can be changed to 1-9
2020-01-08T21:37:54 #kisslinux Yeah
2020-01-08T21:38:00 #kisslinux I wonder if $PPID is needed too.
2020-01-08T21:38:07 #kisslinux $$ is the shell itself.
2020-01-08T21:38:37 #kisslinux $PPID is only different from $$ in a subshell right?
2020-01-08T21:39:21 #kisslinux Anyone use the wpa_supplicant hook feature of dhcpcd ?
2020-01-08T21:39:23 #kisslinux so if killall5_sh isn't running in a subshell $PPID shouldn't be necessary?
2020-01-08T21:39:26 #kisslinux It's needed.
2020-01-08T21:39:33 #kisslinux $PPID = the shell
2020-01-08T21:39:36 #kisslinux $$ = the script
2020-01-08T21:39:52 #kisslinux I ask because ... I do, but wpa_supplicant is very noisy on my getty login / tty1 and it drives me crazy
2020-01-08T21:39:58 #kisslinux I want to make it shut up
2020-01-08T21:40:30 #kisslinux I use iwd personally
2020-01-08T21:41:00 #kisslinux When I was using wpa_supplicant/dhcpcd I spawned them both and they figured it out.
2020-01-08T21:41:11 #kisslinux Try searching around online?
2020-01-08T21:41:12 #kisslinux well it runs great
2020-01-08T21:41:15 #kisslinux i have no issues
2020-01-08T21:41:19 #kisslinux Yeah
2020-01-08T21:41:25 #kisslinux it just spams its' connecting information on tty1
2020-01-08T21:41:27 #kisslinux and i hate that
2020-01-08T21:41:32 #kisslinux You could put the first getty on tty2
2020-01-08T21:42:00 #kisslinux it spams the wifi informationn whereever getty you are looking at
2020-01-08T21:42:07 #kisslinux "authenticated"
2020-01-08T21:42:09 #kisslinux stuff like that
2020-01-08T21:42:18 #kisslinux Ah
2020-01-08T21:42:30 #kisslinux ""link becomes ready""
2020-01-08T21:42:33 #kisslinux "associated"
2020-01-08T21:42:38 #kisslinux like 10-20 lines every startup
2020-01-08T21:42:43 #kisslinux Try: tty1::respawn:/bin/login
2020-01-08T21:42:48 #kisslinux That's what I use.
2020-01-08T21:42:50 #kisslinux over the top of what you are reading
2020-01-08T21:43:07 #kisslinux This skips running a getty.
2020-01-08T21:43:16 #kisslinux okay, interesting!
2020-01-08T21:43:21 #kisslinux Something I have not tried.
2020-01-08T21:43:24 #kisslinux I run no gettys :P
2020-01-08T21:43:26 #kisslinux What are the differences
2020-01-08T21:43:58 #kisslinux it still asks your password i assume
2020-01-08T21:44:11 #kisslinux So what is the difference? I never did learn too much about a getty vs a login
2020-01-08T21:44:51 #kisslinux The getty runs login iirc.
2020-01-08T21:46:35 #kisslinux Basically, you skip opening a TTY.
2020-01-08T21:46:52 #kisslinux busybox getty does the following: Open TTY, prompt for login name, then invoke /bin/login
2020-01-08T21:47:07 #kisslinux (Though /bin/login prompts for login name anyway)
2020-01-08T21:48:28 #kisslinux brb
2020-01-08T21:55:12 #kisslinux i guess we dont need tty?
2020-01-08T21:55:15 #kisslinux weird
2020-01-08T21:58:57 #kisslinux OK
2020-01-08T21:58:59 #kisslinux Pushed.
2020-01-08T21:59:05 #kisslinux Turns out it actually works fine.
2020-01-08T21:59:39 #kisslinux Did 'ps >> file' for both invocations.
2020-01-08T21:59:47 #kisslinux s/ps/ps aux/
2020-01-08T22:00:00 #kisslinux https://github.com/kisslinux/init/commit/9a8a16ef6fcb253fa2fcb36e8a5c9e60b0213e28
2020-01-08T22:03:32 #kisslinux adamantium: One issue with the umount change is that it spits an error out for /dev.
2020-01-08T22:03:57 #kisslinux Basically, the previous command would skip /dev, /sys, /proc and /tmp.
2020-01-08T22:04:19 #kisslinux It's fine, the only issue is the message which could mislead.
2020-01-08T22:04:22 #kisslinux Right
2020-01-08T22:04:26 #kisslinux I believe it is fine
2020-01-08T22:04:55 #kisslinux For example we also try to mount dev on boot and that errs 1 because kernel is automounting it
2020-01-08T22:05:18 #kisslinux Well I suppose you are using a test though. now that I remember
2020-01-08T22:05:49 #kisslinux What umount flags are supported in sbase/ubase?
2020-01-08T22:06:09 #kisslinux usage: umount [-lfn] target...
2020-01-08T22:06:13 #kisslinux usage: umount -a [-lfn]
2020-01-08T22:06:34 #kisslinux Ah
2020-01-08T22:07:02 #kisslinux OK
2020-01-08T22:07:09 #kisslinux We'll leave the message for now.
2020-01-08T22:07:30 #kisslinux Lol
2020-01-08T22:09:25 #kisslinux I made the changes in #5 manually. Thanks :)
2020-01-08T22:12:03 #kisslinux howdy ho
2020-01-08T22:12:55 #kisslinux Hello
2020-01-08T22:19:06 #kisslinux I'm off to bed.
2020-01-08T22:19:08 #kisslinux Ciao.
2020-01-08T22:21:48 #kisslinux good night
text/plain; charset=utf-8
This content has been proxied by September (3851b).