This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lvm_luks [2023/07/25 20:35] – wigums | lvm_luks [2024/07/23 16:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 65: | Line 65: | ||
Next thing we’ve got to do is make sure some nodes get set so everything knows where things are and what not | Next thing we’ve got to do is make sure some nodes get set so everything knows where things are and what not | ||
- | vgscan --mknodes | + | < |
- | vgchange -ay | + | < |
make sure the slackware installer can detect the swap partition | make sure the slackware installer can detect the swap partition | ||
- | mkswap / | + | < |
- | ''' | + | =====Slack Setup and Installation===== |
Run the slackware installer | Run the slackware installer | ||
- | setup | + | < |
the installer will walk you through it from here. it should auto-detect the swap partition we designated | the installer will walk you through it from here. it should auto-detect the swap partition we designated | ||
Line 90: | Line 90: | ||
Now simply install slackware as you normally would until you get to | Now simply install slackware as you normally would until you get to | ||
- | ''' | + | =====Install LILO===== |
To install the bootloader Lilo select ''''' | To install the bootloader Lilo select ''''' | ||
Line 101: | Line 101: | ||
Eit the installer and select ''''' | Eit the installer and select ''''' | ||
- | ''' | + | =====Creating an initrd===== |
Now we have to fix lilo because of our encryption scheme. | Now we have to fix lilo because of our encryption scheme. | ||
- | chroot /mnt | + | < |
The simple explanation for this command is that you basically just entered the installed system, which is mounted at /mnt. Now you can work on things that are installed on the system. | The simple explanation for this command is that you basically just entered the installed system, which is mounted at /mnt. Now you can work on things that are installed on the system. | ||
Line 111: | Line 111: | ||
The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available. The initrd is bound to the kernel and loaded as part of the kernel boot procedure. to create an initrd run | The initial RAM disk (initrd) is an initial root file system that is mounted prior to when the real root file system is available. The initrd is bound to the kernel and loaded as part of the kernel boot procedure. to create an initrd run | ||
- | / | + | < |
it will look similar to this | it will look similar to this | ||
Line 123: | Line 123: | ||
If you need to know what kernel you just installed try | If you need to know what kernel you just installed try | ||
- | uname -a | + | < |
- | ''' | + | =====Fixing LILO===== |
Next, you have to edit lilo’s configuration file and point it to the correct places so it knows what to boot with. Don’t forget the initrd line here. | Next, you have to edit lilo’s configuration file and point it to the correct places so it knows what to boot with. Don’t forget the initrd line here. | ||
(use your preferred editor) | (use your preferred editor) | ||
- | | + | < |
Edit the pertinent parts to look like this: | Edit the pertinent parts to look like this: | ||
- | image = / | + | < |
| | ||
root = / | root = / | ||
label = Slackware | label = Slackware | ||
- | | + | |
Above that, there’s an “append” line. Edit it to look something like this: | Above that, there’s an “append” line. Edit it to look something like this: | ||
Line 148: | Line 148: | ||
Run | Run | ||
- | lilo -v | + | < |
You may get an error or two from lilo, but you can usually ignore these. | You may get an error or two from lilo, but you can usually ignore these. | ||
type | type | ||
- | exit | + | < |
to leave the chroot and then | to leave the chroot and then | ||
- | reboot | + | < |
Line 160: | Line 160: | ||
- | cryptsetup luksOpen /dev/sdx2 slackcrypt | + | < |
| | ||
| | ||
Line 170: | Line 170: | ||
mount -o bind /sys /mnt/sys | mount -o bind /sys /mnt/sys | ||
mount -o bind /dev /mnt/dev | mount -o bind /dev /mnt/dev | ||
- | | + | |