unlock-luks-partition icon indicating copy to clipboard operation
unlock-luks-partition copied to clipboard

ubuntu 20.04 route issue

Open madness85 opened this issue 5 years ago • 11 comments

After following the guide for some reason the routes are messed up:

route -r

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 161.97.64.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 161.97.64.1 0.0.0.0 UG 100 0 0 eth0 161.97.64.0 0.0.0.0 255.255.192.0 U 0 0 0 eth0 161.97.64.1 0.0.0.0 255.255.255.255 UH 100 0 0 eth0

Can confirm it doesn't happen on ubuntu 18.

Anyone know whats going on?

This is how it should look: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 161.97.64.1 0.0.0.0 UG 0 0 0 eth0

madness85 avatar Aug 02 '20 18:08 madness85

How did you end up with this configuration? Can you provide the last steps?

I'm sorry to say that I don't use Ubuntu and since this is a time consuming task, I'm not planning to dive into it. However, if you are willing to debug the issue you are facing, I can provide my support.

ceremcem avatar Aug 02 '20 19:08 ceremcem

How did you end up with this configuration? Can you provide the last steps?

I'm sorry to say that I don't use Ubuntu and since this is a time consuming task, I'm not planning to dive into it. However, if you are willing to debug the issue you are facing, I can provide my support.

I followed your tutorial step by step and that happens. Also tried another tutorial with the same results. Think something has changed with initramfs in ubuntu 20.04 as your setup works perfectly for ubuntu 18.

I could provide you with a server, setup luks etc. You will just need to add your script, what ya think?

madness85 avatar Aug 02 '20 20:08 madness85

I could provide you with a server, setup luks etc. You will just need to add your script, what ya think?

Cuts down the required time at least by a half, but will still take a long time. I'm currently busy with another stuff.

It seems like there is something entirely changed in Ubuntu 20.04. Do they still use initramfs or they swiched to another approach, like Dracut or something? I provided some tools for your issue, see https://github.com/ceremcem/unlock-luks-partition/issues/8#issuecomment-641603642. Can you examine the initramfs structure?

ceremcem avatar Aug 03 '20 11:08 ceremcem

On both 18 & 20: find: ‘initrd/’: No such file or directory

madness85 avatar Aug 03 '20 13:08 madness85

Please post the full command history as if I login to your system via SSH and trying to get this error.

Here I created an example: https://github.com/ceremcem/unlock-luks-partition/tree/master/initramfs-helpers#usage

ceremcem avatar Aug 04 '20 10:08 ceremcem

root:~/unlock-luks-partition/initramfs-helpers# ./unpack /boot/initrd.img-5.4.0-42-generic
62 blocks

gzip: stdin: not in gzip format cpio: premature end of archive root@vmi422255:~/unlock-luks-partition/initramfs-helpers# ls initrd.d/ kernel

madness85 avatar Aug 22 '20 11:08 madness85

Interesting. Can you upload your initrd.img here? (Github will probably complain about the extension. Just append a .zip extension.)

ceremcem avatar Aug 22 '20 12:08 ceremcem

https://mega.nz/file/tctjGDxI#q6xoq2yJPUkjvLX5zJ6uL5yzyy3YO41rz7-V2boId0o

madness85 avatar Aug 22 '20 12:08 madness85

@ceremcem any joy? I can't find a solution anywhere.

madness85 avatar Sep 30 '20 17:09 madness85

Sorry, I couldn't spare some time for that.

madness85 [email protected], 30 Eyl 2020 Çar, 20:51 tarihinde şunu yazdı:

@ceremcem https://github.com/ceremcem any joy? I can't find a solution anywhere.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ceremcem/unlock-luks-partition/issues/9#issuecomment-701545490, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSVCARWQ2CFAELKHKMM6Y3SINV3LANCNFSM4PSVERIA .

ceremcem avatar Sep 30 '20 18:09 ceremcem

Sorry, I couldn't spare some time for that. madness85 [email protected], 30 Eyl 2020 Çar, 20:51 tarihinde şunu yazdı: @ceremcem https://github.com/ceremcem any joy? I can't find a solution anywhere. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSVCARWQ2CFAELKHKMM6Y3SINV3LANCNFSM4PSVERIA .

This seems to be the issue https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/1813394

Adding the script:

/etc/initramfs-tools/scripts/init-bottom/hack-delete-netif-netplan.sh

`#### ---- 8< cut >8 -------- #!/bin/sh

PREREQ=""

prereqs() { echo "$PREREQ" }

case "$1" in prereqs) prereqs exit 0 ;; esac

. /scripts/functions

log_begin_msg "Deleting all network configuration that systemd could try to import" rm /run/net-.conf rm /run/netplan/.yaml log_end_msg

---- 8< cut >8 --------`

Could you include this? or should i just continue using the above script?

madness85 avatar Nov 09 '20 20:11 madness85