zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

Problem EL7 (CentOS RHEL) to a Native ZFS Root Filesystem #228

Open fernando-garcia-torre opened 5 years ago

fernando-garcia-torre commented 5 years ago

I have a problem after trying to install the system. System: 3.10.0-957.5.1.el7.x86_64 CentOS Linux release 7.6.1810 (Core)

software: kmod-spl.x86_64 0.7.13-1.el7_6 @zfs-kmod kmod-zfs.x86_64 0.7.13-1.el7_6 @zfs-kmod libnvpair1.x86_64 0.7.13-1.el7_6 @zfs-kmod libuutil1.x86_64 0.7.13-1.el7_6 @zfs-kmod libzfs2.x86_64 0.7.13-1.el7_6 @zfs-kmod libzpool2.x86_64 0.7.13-1.el7_6 @zfs-kmod spl.x86_64 0.7.13-1.el7_6 @zfs-kmod zfs.x86_64 0.7.13-1.el7_6 @zfs-kmod zfs-dracut.x86_64 0.7.13-1.el7_6 @zfs-kmod zfs-release.noarch 1-6.el7 installed

When i restart i have this message: "unaligned pointer 0xf000ff53" before reaching the menú of grub

fernando-garcia-torre commented 5 years ago

this is my menuentry:

menuentry 'CentOS Linux (3.10.0-957.5.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class o$ load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod zfs set root='hd1,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gp$ else search --no-floppy --fs-uuid --set=root (null) fi linux16 /ROOT@/boot/vmlinuz-3.10.0-957.5.1.el7.x86_64 root=ZFS=(null)/ROOT ro crashkernel=auto rd.lvm.lv=cen$ initrd16 /ROOT@/boot/initramfs-3.10.0-957.5.1.el7.x86_64.img

gordan-bobic commented 5 years ago

This part looks broken:

root=ZFS=(null)/ROOT
cf-sewe commented 5 years ago

I did following workaround: /etc/grub.d/10_linux change the rpool= line 63 and hardcode the poolname of your root pool

Was not able to find a proper solution anywhere...

Ryushin commented 5 years ago

grub_10_linux.patch.txt

I attached my 10_linux patch that I used for Debian/Devuan. It relies on the bootfs parameter in your root pool.