From 729c458bf7cc4ff7df616617b6ac5f4b83537dc3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 15 Aug 2022 12:32:12 -0600 Subject: [PATCH] stand: Abstract out fstab creation Now that all the fstabs are the same, abstract it out into a function. Sponsored by: Netflix --- tools/boot/rootgen.sh | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/tools/boot/rootgen.sh b/tools/boot/rootgen.sh index bcf0aa92419f..80554fb1b77d 100755 --- a/tools/boot/rootgen.sh +++ b/tools/boot/rootgen.sh @@ -34,13 +34,19 @@ cpsys() { (cd $src ; tar cf - .) | (cd $dst; tar xf -) } -mk_nogeli_gpt_ufs_legacy() { +ufs_fstab() { src=$1 - img=$2 cat > ${src}/etc/fstab < ${src}/etc/fstab < ${src}/etc/fstab < ${src}/etc/fstab < ${src}/etc/fstab < ${src}/etc/fstab < ${mntpt}/boot/loader.conf < ${mntpt}/etc/fstab < ${mntpt}/boot/loader.conf < ${mntpt}/etc/fstab < ${mntpt}/boot/loader.conf < ${mntpt}/etc/fstab <