mirror of https://github.com/archzfs/archzfs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.5 KiB
83 lines
1.5 KiB
12 years ago
|
#!/bin/bash
|
||
|
|
||
|
build() {
|
||
12 years ago
|
|
||
12 years ago
|
map add_module \
|
||
|
zavl \
|
||
12 years ago
|
znvpair \
|
||
12 years ago
|
zunicode \
|
||
12 years ago
|
zcommon \
|
||
|
zfs \
|
||
|
zpios \
|
||
12 years ago
|
spl \
|
||
12 years ago
|
splat \
|
||
12 years ago
|
zlib_deflate
|
||
|
|
||
|
map add_binary \
|
||
12 years ago
|
fsck.zfs \
|
||
|
zdb \
|
||
12 years ago
|
zfs \
|
||
12 years ago
|
zhack \
|
||
|
zinject \
|
||
|
zpios \
|
||
12 years ago
|
zpool \
|
||
12 years ago
|
zstreamdump \
|
||
|
ztest \
|
||
|
splat \
|
||
12 years ago
|
hostid \
|
||
12 years ago
|
mount.zfs \
|
||
12 years ago
|
/lib/udev/vdev_id \
|
||
12 years ago
|
/lib/udev/zvol_id
|
||
|
|
||
|
map add_file \
|
||
12 years ago
|
/lib/udev/rules.d/60-zvol.rules \
|
||
|
/lib/udev/rules.d/69-vdev.rules \
|
||
|
/lib/udev/rules.d/90-zfs.rules
|
||
12 years ago
|
|
||
|
add_runscript
|
||
|
|
||
|
# allow mount(8) to "autodetect" ZFS
|
||
|
echo 'zfs' >>"$BUILDROOT/etc/filesystems"
|
||
|
|
||
|
[[ -f /etc/zfs/zpool.cache ]] && add_file "/etc/zfs/zpool.cache"
|
||
|
[[ -f /etc/hostid ]] && add_file "/etc/hostid"
|
||
|
}
|
||
|
|
||
|
help() {
|
||
|
cat<<HELPEOF
|
||
|
This hook allows you to use ZFS as your root filesystem.
|
||
|
|
||
|
Command Line Setup:
|
||
|
|
||
|
You can append the following arguments to your kernel parameters list. See
|
||
|
https://wiki.archlinux.org/index.php/Kernel_parameters for more information.
|
||
|
|
||
|
To use ZFS as your boot filesystem:
|
||
|
|
||
|
zfs=bootfs or zfs=auto or root=zfs
|
||
|
|
||
|
To use a pool or dataset:
|
||
|
|
||
|
zfs=<pool/dataset>
|
||
|
|
||
|
To force importing of a ZFS pool:
|
||
|
|
||
|
zfs_force=1
|
||
|
|
||
|
If set to 1, this will use "zpool import -f" when attempting to import
|
||
|
pools.
|
||
|
|
||
|
Examples:
|
||
|
|
||
|
To use bootfs on your pool, use
|
||
|
|
||
|
zfs=bootfs
|
||
|
|
||
|
This will setup your root using tank/root zfs pool.
|
||
|
|
||
|
zfs=tank/root
|
||
|
HELPEOF
|
||
|
}
|
||
|
|
||
|
# vim: set ts=4 sw=4 ft=sh et:
|