!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

300 Members
Kernel, stdenv, low-level hacking, patchelf, … 76 Servers

Load older messages


SenderMessageTime
10 Jan 2022
@woobilicious:matrix.orgwoobiliciousI got a hacky version working05:59:26
@woobilicious:matrix.orgwoobiliciousbusybox with literally nothing working :D06:01:14
@woobilicious:matrix.orgwoobilicious Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages. 06:03:14
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @woobilicious:matrix.org
Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages.
You nix-build it, then run the resulting script
06:03:40
@zhaofeng:zhaofeng.liZhaofeng LiIt's not a script, but an expression that generates a script for all the required stuff06:04:22
@zhaofeng:zhaofeng.liZhaofeng Li* It's not a script, but an expression that generates a script with all the required stuff06:04:49
@woobilicious:matrix.orgwoobilicious Zhaofeng Li: thanks so much: 06:39:03
@woobilicious:matrix.orgwoobiliciousimage.png
Download image.png
06:39:04
@mic92:nixos.devMic92 (Old)
In reply to @woobilicious:matrix.org
Zhaofeng Li: thanks so much:
we have a nixos wiki for this actually: https://nixos.wiki/wiki/Kernel_Debugging_with_QEMU
07:05:12
@mic92:nixos.devMic92 (Old)I used it extensively here: https://github.com/Mic92/vmsh/blob/main/justfile07:05:53
@woobilicious:matrix.orgwoobiliciousYeah I didn't really like that setup, especially since it's using debian. I actually really like your nixos-shell but I couldn't get that to work with custom kernel.07:07:10
11 Jan 2022
@woobilicious:matrix.orgwoobilicioushow do you guys run make etc without patching all the shebangs?02:18:52
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @woobilicious:matrix.org
how do you guys run make etc without patching all the shebangs?
Normal builds don't require any patching
02:36:59
@zhaofeng:zhaofeng.liZhaofeng Li... but if you want to use some of the scripts then yes02:37:07
@woobilicious:matrix.orgwoobiliciousmake fired a bunch of shebang errors with a default build02:37:56
@zhaofeng:zhaofeng.liZhaofeng LiUm, no? I just fired off a build on master. What are the errors?02:39:27
@zhaofeng:zhaofeng.liZhaofeng Li * Um, no? I just fired off a build on master. What version are you building and what are the errors?02:39:44
@woobilicious:matrix.orgwoobiliciousI got them yesterday...I would have to look at how to trigger it again...it happened about 10mins in.02:41:34
@woobilicious:matrix.orgwoobilicious set a profile picture.13:32:21
12 Jan 2022
@mic92:nixos.devMic92 (Old)
In reply to @woobilicious:matrix.org
how do you guys run make etc without patching all the shebangs?
you can symlink the programs in question, or use fshuservenv or https://github.com/Mic92/envfs
06:35:33
13 Jan 2022
@woobilicious:matrix.orgwoobiliciousSo I guess this is somewhat unrelated, but I get 'sh: can't access tty; job control turned off' when starting my VM, and it makes managing it rather annoying to manage.06:37:15
@woobilicious:matrix.orgwoobiliciousmy current configuration: https://cpy.pt/N5Xd2fJy06:39:02
@zhaofeng:zhaofeng.liZhaofeng LiYou can use the busybox init that should set some basic things up correctly06:45:38
@zhaofeng:zhaofeng.liZhaofeng Li... and let it spawn the shell06:45:56
@woobilicious:matrix.orgwoobilicious Zhaofeng Li: oh thanks, that's a lot better. 07:01:09
@mic92:nixos.devMic92 (Old) woobilicious: I used not-os for tasks like this: https://github.com/cleverca22/not-os 07:18:38
@mic92:nixos.devMic92 (Old)https://github.com/Mic92/vmsh/blob/main/nix/not-os-image.nix07:18:59
@mic92:nixos.devMic92 (Old)I used in my unit tests suite where I had some qemu scripting already enabled so the my usage example is a bit more convoluted: https://github.com/Mic92/vmsh/blob/296a09102abece5df0135afb9678261d5a7b6c20/justfile#L35907:20:36
@mic92:nixos.devMic92 (Old)I can also recommend using virtio-console: https://github.com/Mic92/vmsh/blob/296a09102abece5df0135afb9678261d5a7b6c20/justfile#L344 over serial07:21:09
@mic92:nixos.devMic92 (Old)it has the native terminal size and is noticeable faster.07:21:33

Show newer messages


Back to Room ListRoom Version: 6