fat-avocado | @gnarface I'm going to use a live CD to download the packages to my LVM. Do I need anything other cryptsetup and cryptsetup-initramfs? | 02:04 |
---|---|---|
fsmithred | fat-avocado, cryptsetup cryptsetup-bin cryptsetup-run cryptsetup-initramfs libcryptsetup12 | 02:45 |
Xenguy | .oO( zing ) | 03:11 |
fat-avocado | @fsmithred Thank you! :^D Will there be any configuration after the download? | 03:18 |
fsmithred | when you install cryptsetup, it will rebuild the initramfs. | 03:18 |
fsmithred | are you planning to do this in chroot? | 03:19 |
* Xenguy was never smart enough to figure out chroot ... | 03:19 | |
fsmithred | I'll walk you through it some time | 03:20 |
fsmithred | and it'll be easy | 03:20 |
Xenguy | cool | 03:20 |
fat-avocado | No, I thought apt install with a specified root would be OK | 03:20 |
fsmithred | is that possible? | 03:20 |
fsmithred | if you know your way around grub command line, you could boot it manually and then just install whatever you want. | 03:20 |
fsmithred | actually, it might be easy | 03:21 |
fsmithred | c | 03:21 |
fsmithred | set root=(hd whatever is your /boot | 03:21 |
fat-avocado | I was wrong. With xbps, I can use -r to install packages to a mounted device. I can't do that with apt | 03:22 |
fat-avocado | -r is specify root directory for installation | 03:22 |
fsmithred | linux /vmlinuz- (TAB complete for version) root=/dev/mapper/vg-lv | 03:23 |
fsmithred | ^^^ that last one is one line | 03:23 |
fsmithred | initrd /initrd.img-(version) | 03:23 |
fsmithred | boot | 03:23 |
fat-avocado | But right now I don't even enter grub. | 03:23 |
fsmithred | oh | 03:23 |
fat-avocado | I was going to try your chroot method | 03:23 |
fsmithred | ok | 03:23 |
fsmithred | boot the live media | 03:24 |
fsmithred | get a root terminal | 03:24 |
fsmithred | cryptsetup open /dev/whatever some-label | 03:24 |
fsmithred | uh, lemme check something. I might have this printed somewhere. | 03:25 |
fat-avocado | Should I use the ash shell or choose Rescue mode? | 03:28 |
fsmithred | fat-avocado, scroll down to Mount Encrypted Lvm: https://refracta.org/docs/Release_Notes_10.0.txt | 03:28 |
fsmithred | oh, you have an installer iso? | 03:28 |
fsmithred | eaiser | 03:28 |
fsmithred | boot into rescue mode, let it open the lvm and give you a root shell | 03:29 |
fsmithred | then apt install whatever | 03:29 |
fat-avocado | Yes, I am using the latest Gnuinos server iso | 03:29 |
fsmithred | that should work | 03:29 |
fat-avocado | What should I enter when it asks me to choose a device for the root filesystem? | 03:47 |
fsmithred | doesn't it give you some choices? | 03:47 |
fsmithred | you want the root fs that's inside the encrypted lvm | 03:47 |
fsmithred | I don't recall the exact steps | 03:48 |
fat-avocado | It gives me an error when I select the /dev/mapper/rootfs | 03:48 |
fat-avocado | I can select /dev/sda, my LVMs, or choose no root | 03:48 |
fsmithred | /dev/mapper/vg-lg I think | 03:48 |
fsmithred | where vg-lv is the real name of your volume group and logical volume | 03:49 |
fat-avocado | I have /dev/dm-0,dm-1,dm-2, /dev/LVMs, and my block devices | 03:54 |
fsmithred | no /dev/mapper/ ? | 03:55 |
fsmithred | maybe you need to choose /dev/sdaN so it will open the encrypted partition | 03:55 |
fsmithred | oh, it's also possible that it's not working on that iso. | 03:55 |
fat-avocado | No /dev/mapper/*, I will try using the block device | 03:56 |
fat-avocado | What happens if I choose no root, or if I choose root as the liveCD, mount the encrypted root, and chroot into that? | 03:57 |
fsmithred | that will work | 03:59 |
fat-avocado | 03:59 | |
fat-avocado | Ok, because I cannot access /dev/sda, only my flash drives. | 03:59 |
fsmithred | choose root as the liveCD does not make sense | 04:01 |
fsmithred | if you choose no root, you can do it all manually | 04:02 |
fat-avocado | I had to choose no root, none of the other options were valid | 04:03 |
fsmithred | ok | 04:05 |
fsmithred | do you know the commands to do this? | 04:05 |
fat-avocado | Yeah, just mounting the LVM now | 04:09 |
fat-avocado | Then I just chroot /mnt/x and sudo apt install cryptsetup etc right? | 04:09 |
fsmithred | you probably just need to install cryptsetup-initramfs. The other should already be there. | 04:09 |
fat-avocado | I checked my /bin and had no mention of anything with crypt. | 04:10 |
fsmithred | dpkg -l |grep cryptsetup | 04:10 |
fsmithred | in the chroot | 04:10 |
fat-avocado | Lol! Cryptsetup, -bin, -initramfs, and libcryptsetup12 are already installed | 04:14 |
fsmithred | cryptsetup-run? | 04:15 |
fat-avocado | Not cryptsetup-run | 04:16 |
fsmithred | are you still in the chroot? | 04:22 |
fsmithred | you might need to install grub | 04:22 |
fsmithred | mount the boot partition | 04:22 |
fsmithred | if grub packages are installed, run 'dpkg-reconfigure grub-pc' | 04:22 |
fsmithred | unless you have uefi | 04:22 |
fsmithred | then there's more to do | 04:23 |
fsmithred | oh, you have to bind-mount /dev /proc and /sys if you have to install grub | 04:23 |
fsmithred | and /dev/pts | 04:23 |
fat-avocado | Ok, I am still in the chroot, but how can I troubleshoot DHCP? My network configured automatically, but I unplugged my ethernet. I plugged it back it, and I can't ping anything five minutes later :P | 04:32 |
fsmithred | dhclient eth0 | 04:33 |
fat-avocado | I was going to download cryptsetup-run, then I will go to the /boot | 04:33 |
fsmithred | I need to get to sleep. | 04:34 |
fsmithred | if dhclient complains that it's already up, bring it down with ifconfig or ip | 04:35 |
fat-avocado | @fsmithred, Thanks for the help :) You can sleep and I can get back on (っ⌒‿⌒)っ | 04:44 |
fat-avocado | I'm tired too, lol. Thank you All!~ | 04:49 |
brocashelm | interesting. i didn't know glmark2 was installable in devuan. i thought you had to either compile it yourself or get the deb from ubuntu | 06:31 |
aperson | Thanks ! | 20:39 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!