Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 20.04 route issue #9

Open
madness85 opened this issue Aug 2, 2020 · 11 comments
Open

ubuntu 20.04 route issue #9

madness85 opened this issue Aug 2, 2020 · 11 comments
Labels
inquiry/question Further information is requested

Comments

@madness85
Copy link

madness85 commented Aug 2, 2020

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

@ceremcem ceremcem added the inquiry/question Further information is requested label Aug 2, 2020
@ceremcem
Copy link
Owner

ceremcem commented Aug 2, 2020

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.

@madness85
Copy link
Author

madness85 commented Aug 2, 2020

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?

@ceremcem
Copy link
Owner

ceremcem commented Aug 3, 2020

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 #8 (comment). Can you examine the initramfs structure?

@madness85
Copy link
Author

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

@ceremcem
Copy link
Owner

ceremcem commented Aug 4, 2020

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

@madness85
Copy link
Author

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

@ceremcem
Copy link
Owner

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

@madness85
Copy link
Author

@madness85
Copy link
Author

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

@ceremcem
Copy link
Owner

ceremcem commented Sep 30, 2020 via email

@madness85
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inquiry/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants