zfsonlinux / pkg-zfs

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

[wish] add support for defining altroot somewhere in rc #149

Closed h-2 closed 8 years ago

h-2 commented 9 years ago

I currently dual-boot Debian and FreeBSD. Debian boots from a UFS disk ext4 partition, but shares the ZFS with FreeBSD. Unfortunately this results in FreeBSD's /usr/ports being mounted to /usr/ports on Debian a.s.o. Luckily it doesnt mount over root or anything critical, but it's still not clean. And I always

zfs umount -a
zpool export zroot
zpool import -f -R /zroot zroot

I would be really cool, if I could define a list somewhere that POOLX shall always be imported with alroot YZ. Would this be possible?

PS: I am not using systemd and don't plan to...

FransUrbo commented 9 years ago

I would be really cool, if I could define a list somewhere that POOLX shall always be imported with alroot YZ. Would this be possible?

I'm not quite following.

You boot both FreeBSD and Debian GNU/Linux from the same pool with their respective root filesystem on ZFS?

h-2 commented 9 years ago

No, I boot the Debian from UFS ext4, but I use the zpool from FreeBSD to excahnge and share data. Being able to boot from the same pool would be even cooler, but that's not necessary right now (and quite hard to do, unless grub could change the properties on the pool before booting I guess).

FransUrbo commented 8 years ago

I'm closing this as "stale". There is very little need for this, but if someone can come up with a clean patch, I'll take a look at it.