Skip to main content
27 events
when toggle format what by license comment
Feb 18 at 9:56 comment added pedda @frostschutz in the end your tips helped much. It was a cascade of reasons which caused the issue (main was missing crypttab!), but splitting VGs was a big step and removing the my own script from initramfs the second big one....
Feb 18 at 9:53 vote accept pedda
Feb 18 at 9:53 answer added pedda timeline score: 1
Feb 18 at 0:14 history edited pedda CC BY-SA 4.0
deleted 2224 characters in body
Feb 17 at 14:40 history edited pedda CC BY-SA 4.0
added 2225 characters in body
Feb 16 at 16:36 history edited Jeff Schaller CC BY-SA 4.0
added 6 characters in body
Feb 16 at 12:08 comment added pedda @frostschutz I just opened the luks and activasted te volume groups and started the installation assistant. home partition is untouched , all other partitions were only mapped to the related lv. when it came up, it had no sound, first it has the luks dialog, then no lvm, then nothing with the second boot. then i started analysing the initramfs...
Feb 16 at 12:07 comment added pedda @frostschutz With Ubuntu it is not longer supported in the installation assistant, That was on of the two major points to switch very recently to Mint: performance and the support, this whole Ubuntu Pro has made the product worse. Should I head for reinstall again after just 10d? I had my luks/lvm config from Uubuntu22.o4, that is where the names come from.
Feb 16 at 11:59 history edited pedda CC BY-SA 4.0
added 569 characters in body
Feb 16 at 11:52 comment added pedda @frostschutz, Thanks for your tips! My luks is called ubuntu-luks, my vg ubuntu-vg and so the names of /dev/mapper were automatically generated to ubuntu--vg-home or root or swap_1 (whysoever)- WHere should I separate better? second : In the crypttab I have used the uuids of the pv and vg and lvs. They don*t have any physical UUID besides the pv. I will put the correct uuids here in, I found it too private (just a little hacking paranoia)
Feb 15 at 11:04 comment added frostschutz Consider using separate VGs (vgsplit) to avoid the partial LVM conundrum.
Feb 15 at 10:59 comment added frostschutz All in all LVM on LUKS is standard and should just work (in Ubuntu and most other distro too), if it does not there is something wrong somewhere and adding custom scripts to initramfs should not be the way to go.
Feb 15 at 10:58 comment added frostschutz Not familiar with Mint. I remember Ubuntu was picky with crypt names. Whatever name you pick, must match the name of the currently open mapping, when you run update-initramfs and such. Also using ubuntu-xyz as a name, when the LVM VG is also named ubuntu (why ubuntu anyway when it's mint), and LVM also wants to use ubuntu-xyz names. Better to keep those separated. Then you must use correct UUIDs everywhere and not mix them up (LUKS UUIDs are different from filesystem UUIDs). It's impossible to check any of these in your question since it's all xxx-ed out. Also check /proc/cmdline.
Feb 15 at 4:34 comment added Hauke Laging The extent of this question probably scares off most people. I suggest you create another question just with the core of your edit, along the lines of "How to configure the execution order of initramfs scripts?"
Feb 15 at 3:15 history edited pedda CC BY-SA 4.0
added 1795 characters in body
Feb 15 at 3:02 comment added pedda @Hauke Laging The decryption is not the problem, but it would be good, if I would be able to time it right before my scruipt. But as it opens up this GUI interface for inputting the password, it seems a little bit complicated and outside the scope of the scripts but deep inside the initrd image, which I have deflated with command unmkinitramfs -v initrd.img-6.8.0-53-generic /tmp/initrd.
Feb 15 at 2:55 comment added pedda @Hauke Laging But maybe you can have a look at my edit2. I am little bit lost!
Feb 15 at 2:54 history edited pedda CC BY-SA 4.0
added 1694 characters in body
Feb 14 at 22:26 comment added Hauke Laging As I said I have never done this so at this point I am basically googeling this for you. I stumpled upon this, though: manpages.ubuntu.com/manpages/xenial/man8/… It seems you have to determine the name of the script which does the decryption and add it to PREREQ="".
Feb 14 at 20:08 comment added pedda @Hauke Laging But the script in /scripts/local-top seems to run before cryptsetup has run! How can I add a post script before leaving initramfs??
Feb 14 at 19:54 comment added pedda @Hauke Laging Ok Hauke, that was only my understanding. I am relieved if it is like you said. Thanks man, you made me smile! And give me hope , that I did not open a maintainance plan for eternity! I forgot the /etc/initramfs-tools directory and thought about changing the initrd images. Sometimes my mind plays tricks on me!!
Feb 14 at 16:22 comment added Hauke Laging That's strange. I have not done that myself but the /etc/initramfs-tools/ is for stuff to be done automatically whenever a new initrd is generated, isn't it? Should not be difficult to get it done in a way that does not require manual intervention for each kernel update.
Feb 14 at 12:04 comment added pedda @Hauke I did this already! Thanks for the hint! But it has the unpleasant downside that I have to redo it every time the system updates a new kernel. Sth. must gone wrong during intallation process, I set the the partition with ubuntu 22.04 & upgraded to 24.04 (but that does not have luks/lvm support durig install). This is how I came to Mint. which stays funnily maybe for these reasons at 22.The policy of Ubuntu (reliability,stability&fully featured) gets corrupted since they got Corona. It is faulty & performance lagging. So I don't know I will post this as an answer in hope sb finds better!
Feb 14 at 0:47 comment added Hauke Laging I do not know how this is supposed to work, what may be broken and how to really fix it. But if noone knows how to really fix it then you can at least make your life easier by writing a small script (which probably has to go into /etc/initramfs-tools/scripts/local-top) which runs the lvm lvchange -ay ubuntu-vg.
Feb 13 at 22:37 history edited pedda CC BY-SA 4.0
added 513 characters in body
S Feb 13 at 1:20 review First questions
Feb 16 at 12:10
S Feb 13 at 1:20 history asked pedda CC BY-SA 4.0