Home
last modified time | relevance | path

Searched refs:bootfs (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/sys/contrib/openzfs/contrib/dracut/
H A DREADME.md7 3. Either (a) set `bootfs=` on the pool to the dataset:
9 zpool set bootfs=pool/dataset pool
23 *(empty)* | the first `bootfs=` after `zpool import -aN` |
36 3. `bootfs.snapshot`, `bootfs.snapshot=snapshot-name`: enables `zfs-snapshot-bootfs.service`,
41 4. `bootfs.rollback`, `bootfs.rollback=snapshot-name`: enables `zfs-rollback-bootfs.service`,
47 5. If both `bootfs.snapshot` and `bootfs.rollback` are set, `bootfs.rollback` is ordered *after* `b…
H A DMakefile.am18 %D%/90zfs/zfs-env-bootfs.service \
20 %D%/90zfs/zfs-rollback-bootfs.service \
21 %D%/90zfs/zfs-snapshot-bootfs.service
/freebsd/tests/sys/cddl/zfs/tests/bootfs/
H A Dbootfs_test.sh36 . $(atf_get_srcdir)/bootfs.cfg
51 . $(atf_get_srcdir)/bootfs.cfg
67 . $(atf_get_srcdir)/bootfs.cfg
82 . $(atf_get_srcdir)/bootfs.cfg
97 . $(atf_get_srcdir)/bootfs.cfg
113 . $(atf_get_srcdir)/bootfs.cfg
128 . $(atf_get_srcdir)/bootfs.cfg
144 . $(atf_get_srcdir)/bootfs.cfg
160 . $(atf_get_srcdir)/bootfs.cfg
H A Dbootfs_001_pos.ksh63 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
87 log_must $ZPOOL set bootfs=$TESTPOOL/$FS $TESTPOOL
88 log_must $ZPOOL set bootfs=$TESTPOOL/$FS@snap $TESTPOOL
89 log_must $ZPOOL set bootfs=$TESTPOOL/clone $TESTPOOL
92 log_must $ZPOOL set bootfs=$TESTPOOL/clone $TESTPOOL
H A Dbootfs_006_pos.ksh55 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
76 log_must $ZPOOL set bootfs=$POOL/$FS $POOL
77 VAL=$($ZPOOL get bootfs $POOL | $TAIL -1 | $AWK '{print $3}' )
89 log_mustnot $ZPOOL set bootfs=$POOL/$FS $POOL
90 VAL=$($ZPOOL get bootfs $POOL | $TAIL -1 | $AWK '{print $3}' )
H A Dbootfs_009_neg.ksh60 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
82 log_mustnot $ZPOOL set bootfs=$TESTPOOL/$FS $TESTPOOL
90 log_mustnot $ZPOOL set bootfs=$TESTPOOL/clone $TESTPOOL
H A Dbootfs_003_pos.ksh69 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
94 log_must $ZPOOL set bootfs=$POOL/$FS $POOL
95 RES=$($ZPOOL get bootfs $POOL | $TAIL -1 | $AWK '{print $3}' )
H A Dbootfs_002_neg.ksh61 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
74 log_mustnot $ZPOOL set bootfs=$TESTPOOL/vol $TESTPOOL
H A DMakefile5 TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/bootfs
8 ${PACKAGE}FILES+= bootfs.cfg
H A Dbootfs_004_neg.ksh70 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
100 log_mustnot $ZPOOL set bootfs=$POOL/$FS $POOL
H A Dbootfs_005_neg.ksh74 $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
94 log_mustnot $ZPOOL set bootfs=$POOL_NAME/$FS $POOL_NAME
/freebsd/tools/tools/zfsboottest/
H A Dzfsboottest.sh52 bootfs=`zpool get bootfs "${pool}" | tail -1 | awk '{print $3}'`
53 if [ "${bootfs}" = "-" ]; then
54 bootfs="${pool}"
56 mountpoint=`df -t zfs "${bootfs}" 2>/dev/null | tail -1 | awk '{print $6}'`
58 echo "The \"${bootfs}\" dataset is not mounted." >&2
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_002_neg.ksh51 zpool destroy bootfs
57 if poolexists bootfs
108 log_must zpool create bootfs $FILEVDEV
109 log_must zfs create bootfs/root
/freebsd/sys/contrib/openzfs/contrib/dracut/90zfs/
H A Dzfs-rollback-bootfs.service.in2 Description=Rollback bootfs just before it is mounted
4 After=zfs-import.target dracut-pre-mount.service zfs-snapshot-bootfs.service
7 ConditionKernelCommandLine=bootfs.rollback
12 ExecStart=/bin/sh -c '. /lib/dracut-lib.sh; SNAPNAME="$(getarg bootfs.rollback)"; exec @sbindir@/zf…
H A Dzfs-snapshot-bootfs.service.in2 Description=Snapshot bootfs just before it is mounted
7 ConditionKernelCommandLine=bootfs.snapshot
12 ExecStart=-/bin/sh -c '. /lib/dracut-lib.sh; SNAPNAME="$(getarg bootfs.snapshot)"; exec @sbindir@/z…
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_set/
H A Dzpool_set_002_neg.ksh59 destroy_pool bootfs
72 if poolexists bootfs
123 log_must $ZPOOL create bootfs $VDEV
124 log_must $ZFS create bootfs/root
/freebsd/sys/contrib/openzfs/cmd/zpool/os/freebsd/
H A Dzpool_vdev_os.c110 char bootfs[ZPOOL_MAXPROPLEN]; in after_zpool_upgrade() local
112 if (zpool_get_prop(zhp, ZPOOL_PROP_BOOTFS, bootfs, in after_zpool_upgrade()
113 sizeof (bootfs), NULL, B_FALSE) == 0 && in after_zpool_upgrade()
114 strcmp(bootfs, "-") != 0) { in after_zpool_upgrade()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/
H A Dbootfs_001_pos.ksh74 log_must zpool set bootfs=$TESTPOOL/$TESTFS $TESTPOOL
75 log_must zpool set bootfs=$TESTPOOL/$TESTFS@snap $TESTPOOL
76 log_must zpool set bootfs=$TESTPOOL/clone $TESTPOOL
79 log_must zpool set bootfs=$TESTPOOL/clone $TESTPOOL
H A Dbootfs_006_pos.ksh56 log_must zpool set bootfs=$POOL/$TESTFS $POOL
57 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' )
70 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL
71 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' )
H A Dbootfs_003_pos.ksh70 log_must zpool set bootfs=$POOL/$TESTFS $POOL
71 RES=$(zpool get bootfs $POOL | awk 'END {print $3}' )
H A Dbootfs_007_pos.ksh67 log_must zpool set bootfs=$EFI_BOOTFS $TESTPOOL
/freebsd/tests/sys/cddl/zfs/tests/rootpool/
H A Drootpool_001_pos.ksh59 typeset bootfs=$(get_pool_prop bootfs $rootpool)
61 if [[ $bootfs != $rootfs ]]; then
/freebsd/lib/libbe/
H A Dbe_info.c69 if (*lbh->bootfs != '\0') in be_nextboot_name()
70 return (strrchr(lbh->bootfs, '/') + sizeof(char)); in be_nextboot_name()
72 return (lbh->bootfs); in be_nextboot_name()
83 return (lbh->bootfs); in be_nextboot_path()
/freebsd/tools/boot/
H A Drootgen.sh114 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
137 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
160 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
217 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
245 -o poolname=${pool} -o bootfs=${pool} -o rootpath=/ \
406 zpool set bootfs=${pool} ${pool}
423 zpool set bootfs=${pool}/ROOT/default ${pool}
455 zpool set bootfs=${pool} ${pool}
472 zpool set bootfs=${pool}/ROOT/default ${pool}
500 zpool set bootfs=${pool} ${pool}
[all …]
/freebsd/sys/contrib/openzfs/contrib/initramfs/scripts/
H A Dzfs8 # $quiet, $root, $rpool, $bootfs come from the cmdline:
69 # Find the 'bootfs' property on pool $1.
86 # Not set, try to find it in the 'bootfs' property of the pool.
87 # NOTE: zpool does not support 'get -H -ovalue bootfs'...
780 # rpool=<pool> (tries to finds bootfs automatically)
782 # rpool=<pool> bootfs=<pool>/<dataset>
806 # Look for 'rpool' and 'bootfs' parameter
808 [ -n "$bootfs" ] && ZFS_BOOTFS="${bootfs#bootfs=}"
821 # The ${zfs-bootfs} variable is set at the kernel command
827 # stripping the zfs-bootfs= prefix. Let the shell handle
[all …]

123