File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ install() {
125
125
126
126
# vdev_id.conf and hostid files are host-specific
127
127
# and do not belong in public release images
128
- if [ -z " ${release_build } " ]; then
128
+ if [ -z " ${zfsbootmenu_release_build } " ]; then
129
129
if [ -e /etc/zfs/vdev_id.conf ]; then
130
130
inst /etc/zfs/vdev_id.conf
131
131
type mark_hostonly > /dev/null 2>&1 && mark_hostonly /etc/zfs/vdev_id.conf
@@ -172,7 +172,7 @@ install() {
172
172
173
173
# Force rd.hostonly=0 in the KCL for releases, this will purge itself after 99base/init.sh runs
174
174
# shellcheck disable=SC2154
175
- if [ -n " ${release_build } " ]; then
175
+ if [ -n " ${zfsbootmenu_release_build } " ]; then
176
176
echo " rd.hostonly=0" > " ${initdir} /etc/cmdline.d/hostonly.conf"
177
177
fi
178
178
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ omit_dracutmodules+=" qemu "
14
14
omit_dracutmodules+=" nvdimm fs-lib rootfs-block dm dmraid crypt "
15
15
16
16
embedded_kcl="rd.hostonly=0"
17
- release_build =1
17
+ zfsbootmenu_release_build =1
Original file line number Diff line number Diff line change @@ -100,6 +100,15 @@ create_zbm_conf() {
100
100
has_column=1
101
101
fi
102
102
103
+ case " ${zfsbootmenu_release_build,,} " in
104
+ yes|y|on|1)
105
+ zfsbootmenu_release_build=1
106
+ ;;
107
+ * )
108
+ zfsbootmenu_release_build=
109
+ ;;
110
+ esac
111
+
103
112
# Normalize ZBM_BUILDSTYLE, if set
104
113
case " ${ZBM_BUILDSTYLE,,} " in
105
114
mkinitcpio) ZBM_BUILDSTYLE=" mkinitcpio" ;;
@@ -113,12 +122,14 @@ create_zbm_conf() {
113
122
readonly _ETC_ZFSBOOTMENU_CONF=1
114
123
EOF
115
124
125
+ # shellcheck disable=SC2154
116
126
cat >> " ${BUILDROOT} /etc/zfsbootmenu.conf" << -EOF
117
127
export HAS_REFRESH="${has_refresh} "
118
128
export HAS_DISABLED="${has_disabled} "
119
129
export HAS_BORDER="${has_border} "
120
130
export HAS_COLUMN="${has_column} "
121
131
export ZBM_BUILDSTYLE="${ZBM_BUILDSTYLE} "
132
+ export ZBM_RELEASE_BUILD="${zfsbootmenu_release_build} "
122
133
EOF
123
134
}
124
135
Original file line number Diff line number Diff line change @@ -184,8 +184,10 @@ match_hostid() {
184
184
if read_write=' ' import_pool " ${pool} " ; then
185
185
zdebug " successfully imported ${pool} "
186
186
187
- zwarn " imported ${pool} with assumed hostid ${hostid} "
188
- zwarn " set spl_hostid=${hostid} on ZBM KCL or regenerate with corrected /etc/hostid"
187
+ if [ -z " ${ZBM_RELEASE_BUILD} " ]; then
188
+ zwarn " imported ${pool} with assumed hostid ${hostid} "
189
+ zwarn " set spl_hostid=${hostid} on ZBM KCL or regenerate with corrected /etc/hostid"
190
+ fi
189
191
190
192
echo " ${pool} ;${hostid} "
191
193
return 0
You can’t perform that action at this time.
0 commit comments