!oNSIfazDqEcwhcOjSL:matrix.org

disko

353 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
21 Sep 2024
@matthewcroughan:defenestrate.itmatthewcroughan * I like that disko doesn't inject any extra stuff, unless the user specifies it via postVM though, having to DIY it feels bad too though15:52:27
@matthewcroughan:defenestrate.itmatthewcroughan * I like that disko doesn't inject any extra stuff, unless the user specifies it via postVM/postMount though, having to DIY it feels bad too though15:52:38
@joerg:thalheim.ioMic92doesn't systemd has some auto disk increase thingy?15:53:07
@matthewcroughan:defenestrate.itmatthewcroughanYeah but that only works well with systemd-reparted15:53:15
@matthewcroughan:defenestrate.itmatthewcroughanand reparted sucks because it cannot build images for embedded devices due to demanding everything implement GPT15:53:27
@matthewcroughan:defenestrate.itmatthewcroughan * and reparted sucks because it cannot build images for embedded devices due to demanding everything implement GPT properly15:53:32
@joerg:thalheim.ioMic92I think on-first-boot resizing is also different from disk images15:53:37
@matthewcroughan:defenestrate.itmatthewcroughanyou can't make an image with arbitrary start sector for example, where you would put uboot15:53:49
@matthewcroughan:defenestrate.itmatthewcroughanI've played a lot with both disko and reparted, and reparted is only nice for x86 uefi, everything else is out of the window15:54:32
@matthewcroughan:defenestrate.itmatthewcroughandisko can do everything15:54:41
@matthewcroughan:defenestrate.itmatthewcroughanI also tried to coerce systemd into resizing the things that disko creates, but that can't be done, at least I couldn't figure it out15:55:14
@matthewcroughan:defenestrate.itmatthewcroughanafaik you can only coerce systemd into doing that for you if you have made everything with reparted15:55:35
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @joerg:thalheim.io
I think on-first-boot resizing is also different from disk images
it is, but you can't do it without impacting the disk image
16:02:11
@matthewcroughan:defenestrate.itmatthewcroughanYou have to put some state on the disk image, so it knows that it's the first boot, there's no other strategy I know of that could indicate a disk image is being booted for the first time16:03:13
@matthewcroughan:defenestrate.itmatthewcroughanzfs autoResize is cool though, only zfs could do that however16:03:45
@matthewcroughan:defenestrate.itmatthewcroughanthe strategy of touching a file in the disk image so the system knows when first-boot is happening, is filesystem agnostic16:04:20
@joerg:thalheim.ioMic92can you not the sentinil file the other way around?16:05:26
@joerg:thalheim.ioMic92And create the file after the resize?16:05:35
@matthewcroughan:defenestrate.itmatthewcroughanThat would mean that on any boot, it attempts to resize, unless told not to?16:06:03
@matthewcroughan:defenestrate.itmatthewcroughanas opposed to attempting the resize only when told to16:06:49
@matthewcroughan:defenestrate.itmatthewcroughanfeels risky to me, unless we trust the filesystem utils very much16:07:09
@joerg:thalheim.ioMic92Well it only tries it once16:07:54
@matthewcroughan:defenestrate.itmatthewcroughansystemd-reparted has solved all of this in their own way, not 100% sure how it's all implemented but it works well16:07:57
@matthewcroughan:defenestrate.itmatthewcroughanthey mark disks as managed by repart somehow16:08:07
@joerg:thalheim.ioMic92systemd-reparted probably checks if there is any space left that can be used.16:08:18
@matthewcroughan:defenestrate.itmatthewcroughanand manage all this state16:08:19
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.18:21:24
22 Sep 2024
@blimbus:matrix.orgblimbusHi yall, not sure if I'm just stupid and missing something but disko in disko mode is failing to setup luks on an empty drive. If the drive aleady has partitions or anything else on it it works but otherwise just fails somewhere after partitioning. It makes a luks device with password "password" even though it is set to prompt and then doesnt open the volume so creating filesystems fails.22:13:05
26 Sep 2024
@vendion:matrix.orgvendion joined the room.14:18:19
27 Sep 2024
@waterturkey:matrix.orgwaterturkeyHey disko fans - I'm looking for some advice. I have an Odroid H3 with three hard drives: 1 x 500GB NVME and 2 x 14TB SATA drives. I think I'd like to use zfs with the NVME being the root file system and the sata drives set up as a zfs mirror, but I'm wondering what y'all would recommend for this arrangement? Any feedback is greatly appreciated.00:15:27

Show newer messages


Back to Room ListRoom Version: 10