Description of the issue (screenshots if relevant):
I have a harddisk that I don’t want to completely wipe out. I have regular backups of my data. But still I don’t want to erase the entire hard disk to install Mandriva.
On my disk I have a gpt partition table.
EFI
Boot partition
A luks encrypted partition
Inside luks there is an LVM
Inside LVM there is a partition where I want to install open mandriva.
My usual way of installation (coming from debian) is to run some script to install the base system on the mounted partition and then chroot to the partition and install and configure all the rest. The script for debian is debootstrap. Is there such script for OpenMandriva?
Is there any wiki page for installation via chroot?
Should I do tricky steps like copying from the iso file directly into the partition and then chroot to it?
Please help.
Thanks in advance.
Relevant informations (hardware involved, software version, logs or output…):
My instinct would be that install from a minimal image would be the starting point after the volume is decrypted and the volume is resized so the new volume can be added. From that point, you will probably have to build your system from scratch including any manual entries to grub2. @bero can give you better directions.
SATA SSD’s are also really cheap right now… Just sayin’
Then once chroot inside the root folder, I can do the rest.
I’m planning to insatll all my favorite programs that I always use on the woke debian.
Then I’m going to copy the resulted root partition over to my actual disk on my root partition that I have for this purpose.
Then I will struggle to make grub and initramfs work with my crazy complicated setup of LUKS and LVM
Hope everything goes well. It will be a long night for me here in Europe.
Also to make grub work with lvm and luks, modified the file:
/etc/default/grub
To have the line:
GRUB_CMDLINE_LINUX_DEFAULT='quiet rd.luks.uuid=<uuid of the luks partition> rd.lvm.lv=<name of the volume group>/<name of the volume for root> root=/dev/mapper/<name of the volume group>-<name of the volume for root> splash rd.lvm.lv=<name of the volume group>/<name of the volume for swap> resume=/dev/mapper/<name of the volume group>-<name of the volume for swap> logo.nologo audit=0 rd.timeout=120 dm_mod.use_blk_mq=1 rd.systemd.show_status=0 systemd.show_status=0'