mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-28 20:09:35 +03:00
11 lines
275 B
Bash
11 lines
275 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
. /lib/dracut-lib.sh
|
||
|
|
||
|
if [ "$rootfs" = "zfs" ]; then
|
||
|
zfsrootfs=`echo "$root" | sed 's|^zfs:||'`
|
||
|
zfspool=`echo "$zfsrootfs" | sed 's|/.*||g'`
|
||
|
zpool import -N "$zfspool"
|
||
|
mount -o zfsutil -t "$rootfs" "$zfsrootfs" "$NEWROOT" && ROOTFS_MOUNTED=yes
|
||
|
fi
|