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

build_wsl_kernel.sh looking for v6.x kernels in v5.x directory #5

Closed
mcladams opened this issue Aug 29, 2023 · 4 comments
Closed

build_wsl_kernel.sh looking for v6.x kernels in v5.x directory #5

mcladams opened this issue Aug 29, 2023 · 4 comments

Comments

@mcladams
Copy link

Error is in line 49.
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${KERNELVER}.tar.xz -O /tmp/kbuild/kernel.tar.xz

Currently running:
`mike@A515:~/git/zfs-on-wsl$ sudo ./build_wsl_kernel.sh

I'll note any other issues after I've built, installed & tested & maybe hit (tweet) you on ultra (the fediverse/masstadon) with other notes.

Up to date ubuntu 23.10 on wsl2 latest microsoft kernel on win 11 insider preview dev channel
root@A515:~# uname -a Linux A515 5.15.90.4-microsoft-standard-WSL2 #1 SMP Tue Jul 18 21:28:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

PS C:\Users\Mike> uname -a Windows_NT A515 10.0 23526 x86_64 MS/Windows (Windows 11)

@alexhaydock
Copy link
Owner

Thanks for testing this. I should get around to updating this but sadly I don't have any Windows machines for testing that are conveniently available.

I did have grand plans of building this into a Debian package so it actually builds a proper installable package to use, but never quite got around to that.

@mcladams
Copy link
Author

I'll fork and clone it if there are any more things I find. Its a super useful script (last two times I read the script but did it all manually), if its only bugfixes I can help with that.

(I had grand plans for a script to convert ubuntu zsys bpool/rpool system to zfsbootmenu zroot only system... not happening... but I did just manually converted two distros with default btrfs root with grub-btrfs/snapper/timeshift to zfsbootmenu/sanoid... that would be a useful thing.)

@mcladams
Copy link
Author

Apparently successful, will test in next days

`Kernel: arch/x86/boot/bzImage is ready (#1)

  • make modules_install
    DEPMOD /lib/modules/6.4.12-${KERNELNAME}
  • mkdir -p /mnt/c/ZFSonWSL
  • cp -fv /usr/src/linux-6.4.12-ubuntu-preview/arch/x86/boot/bzImage /mnt/c/ZFSonWSL/bzImage-new
    '/usr/src/linux-6.4.12-ubuntu-preview/arch/x86/boot/bzImage' -> '/mnt/c/ZFSonWSL/bzImage-new'
  • cd /tmp/kbuild
  • tar -czf linux-6.4.12-ubuntu-preview.tgz /usr/src/linux-6.4.12-ubuntu-preview
  • tar -czf zfs-2.1.12-for-6.4.12-ubuntu-preview.tgz /usr/src/zfs-2.1.12-for-linux-6.4.12-ubuntu-preview`

@alexhaydock
Copy link
Owner

I think this should no longer be an issue, as my latest updates rework the script to use the kernel code from Microsoft's WSL kernel Git repo rather than direct from kernel.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants