!oNSIfazDqEcwhcOjSL:matrix.org

disko

366 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
1 Mar 2024
@lassulus:lassul.uslassulusand fill it dynamically when you execute the diskoScript00:41:50
@raitobezarius:matrix.orgraitobezarius
In reply to @lassulus:lassul.us
ok, but then you should be able to use an environment variable as the initial device
yeah, just trying to confirm if it makes sense to you
00:41:50
@raitobezarius:matrix.orgraitobezarius like having this weird device = "$PRIMARY_DISK"; ? 00:42:04
@lassulus:lassul.uslassulusyeah, that should work00:42:14
@lassulus:lassul.uslassulusbut not sure that it actually does :)00:42:20
@raitobezarius:matrix.orgraitobezariusack00:42:23
@raitobezarius:matrix.orgraitobezariuswill try00:42:27
@lassulus:lassul.uslassulusbut if it doesn't that is a bug worth fixing00:42:28
@raitobezarius:matrix.orgraitobezariusif i find things00:42:28
@raitobezarius:matrix.orgraitobezariusi will send you PRs00:42:30
@raitobezarius:matrix.orgraitobezariusand docs00:42:32
@lassulus:lassul.uslassulusok, great00:42:38
@lassulus:lassul.uslassulusimage.png
Download image.png
00:43:35
@lassulus:lassul.uslassulus:)00:43:38
@raitobezarius:matrix.orgraitobezariusmy pleasure my dear lassulus00:44:57
@raitobezarius:matrix.orgraitobezariusi'm gonna make you load bearing on hyperscaler soon00:45:09
@sef:exotic.shsefidel joined the room.09:13:20
7 Mar 2024
@lychee:lefishe.club@lychee:lefishe.club changed their profile picture.02:29:00
@sysedwinistrator:matrix.orgsysedwinistrator joined the room.11:03:24
@marijan:matrix.orgmarijan joined the room.14:14:37
8 Mar 2024
@gsaurel:laas.frnim65s joined the room.16:50:45
9 Mar 2024
@void68:matrix.orgvoid
 partitions = {                                                                                                                                                                                                                       
          boot = {                                                                                                                                                                                                                           
            start = "0";                                                                                                                                                                                                                     
            end = "1M";                                                                                                                                                                                                                      
            type = "EF02";                                                                                                                                                                                                                   
            #bootable = true;                                                                                                                                                                                                                
            #flags = [ "bios_grub" ];                                                                                                                                                                                                        
          };                                                                                                                                                                                                                                 
          ESP = {                                                                                                                                                                                                                            
            start = "1M";                                                                                                                                                                                                                    
            end = "1024M";                                                                                                                                                                                                                   
            type = "EF00";                                                                                                                                                                                                                   
            content = {                                                                                                                                                                                                                      
              type = "filesystem";                                                                                                                                                                                                           
              format = "vfat";                                                                                                                                                                                                               
              mountpoint = "/boot";                                                                                                                                                                                                          
            };                                                                                                                                                                                                                               
          };                                               
10:08:44
@void68:matrix.orgvoid
+ sgdisk --align-end --new=1:1M:1024M --change-name=1:disk-main-ESP --typecode=1:EF00 /dev/disk/by-id/ata-LITEON_CV8-8E128-11_SATA_128GB_TW059X3VLOH0091E07L2                                                                                
Creating new GPT entries in memory.                                                                                                                                                                                                          
The operation has completed successfully.                                                                                                                                                                                                    
+ partprobe /dev/disk/by-id/ata-LITEON_CV8-8E128-11_SATA_128GB_TW059X3VLOH0091E07L2                                                                                                                                                          
+ udevadm trigger --subsystem-match=block                                                                                                                                                                                                    
+ udevadm settle                                                                                                                                                                                                                             
+ device=/dev/disk/by-partlabel/disk-main-ESP                                                                                                                                                                                                
+ extraArgs=()                                                                                                                                                                                                                               
+ declare -a extraArgs                                                                                                                                                                                                                       
+ format=vfat                                                                                                                                                                                                                                
+ mountOptions=('defaults')                                                                                                                                                                                                                  
+ declare -a mountOptions                                                                                                                                                                                                                    
+ mountpoint=/boot                                                                                                                                                                                                                           
+ type=filesystem                                                                                                                                                                                                                            
+ mkfs.vfat /dev/disk/by-partlabel/disk-main-ESP                                                                                                                                                                                             
mkfs.fat 4.2 (2021-01-31)                                                                                                                                                                                                                    
+ sgdisk --align-end --new=2:0:1M --change-name=2:disk-main-boot --typecode=2:EF02 /dev/disk/by-id/ata-LITEON_CV8-8E128-11_SATA_128GB_TW059X3VLOH0091E07L2                                                                                   
Could not create partition 2 from 2099200 to 2048                                                                                                                                                                                            
Unable to set partition 2's name to 'disk-main-boot'!                                                                                                                                                                                        
Could not change partition 2's type code to EF02!                               
10:09:01
@void68:matrix.orgvoidlol10:09:03
@void68:matrix.orgvoidwhy does it tries to create boot after ESP even though the start & end is given?10:09:31
@void68:matrix.orgvoidsomething must have happnd to start/end parameters I guess.10:10:28
@void68:matrix.orgvoidor the order is altered somehow. The partitions table was a list before now its an assoc so the order is gone obviously.10:11:45
@void68:matrix.orgvoidhm now I have to input priority=N; to all my partitions to get the correct order.10:33:34
@void68:matrix.orgvoidhow did disko handled start/end before? it seems I need to enter exact start/ends to get continuity.10:35:50
@void68:matrix.orgvoidfor instance, does end="16G-1" work with sgdisk?10:36:08

Show newer messages


Back to Room ListRoom Version: 10