From nobody Mon Oct 16 13:36:32 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S8J6m4Jnvz4xNcn for ; Mon, 16 Oct 2023 13:36:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S8J6m2qfqz4KkP for ; Mon, 16 Oct 2023 13:36:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697463392; a=rsa-sha256; cv=none; b=qzq3hDJfmZfClBydvy0mPH5nCnmvGYjLDatzUmmliRynRM6S/S8sNVUwaxLmSg7Fkv9mBx EDVNMO3yyYoU1jcfj5gsdUcFomQeOK8/cbuTkaUzy/MiMTHfYBarbAqhyqsTthU3lBESJX AyxG1xhYeazjn+GOR0xH8QnFhZm/FuAqpB8zZtMWMN2xlfDxSeTrb9ewxn3/Zn53TguY9K LrV2oReHT9XGm6Der/a8n8GtkmrtotmITa0Yf8soFmEyeiSQe0a0r7Zts6czIp8l5dQCqL PD26zsekjH1/pAhqaEYHllhY8n4QuK2M0eULNig0iM2fVfXNqeIf+SA1G4LlAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697463392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BMkmt7hGu/bNxsfGvLvUnfjN9uFYnAD2VUmbx+RLJrg=; b=Cv+dyAjaIlGXtdGzjgyegycmWBYgSYyaH6cTx/Frxzgh71p7Hi/ys7feACnCsUjXZsvojm jTsdeP31acPd4dHyXImM6mnEGdxshcW1vPx5rpzG1s+ik7PBMmw/DPZX2BJtm3UHR8y3EY VZ01hxoaFQ1eCeE1oYYc34E4uOJS4ehHT1nIJjus1rK7sTDIuIOVblWxZf+wgP1DXNumq6 Vll/ugE09xzqZiua56tHNOmUrax+uaIWtZlmjcpTGCVvvhp6/8R5gjQCwjde4ozEvketoq GjADu3SbHHz+sT4ysZ/m6RQTz9mtrqa3rbazF+EhkKnJIwZPVQWmt3tVRyx7yA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S8J6m1wjLzj8L for ; Mon, 16 Oct 2023 13:36:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39GDaWuu080242 for ; Mon, 16 Oct 2023 13:36:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39GDaW4I080241 for bugs@FreeBSD.org; Mon, 16 Oct 2023 13:36:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274513] bsdinstall(8): Can't disable forcing of 4k sectors with ZFS pool using scripted install Date: Mon, 16 Oct 2023 13:36:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugs.freebsd.org@a12l.xyz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274513 Bug ID: 274513 Summary: bsdinstall(8): Can't disable forcing of 4k sectors with ZFS pool using scripted install Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bugs.freebsd.org@a12l.xyz Context =3D=3D=3D=3D=3D=3D=3D I'm trying to write my own `installconfig` script to make it easier to inst= all FreeBSD 14 on my desktop machines. From what I understand, modern SSD drives have 8k physical sectors. Therefore I want to use 8k sectors for my ZFS poo= l. I've added `-o ashift=3D13` to `$ZFSBOOT_POOL_CREATE_OPTIONS`. I now want to disable the forcing of 4k sectors to avoid problems with contradicting settings. Expected Behavior =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I only need to set `$ZFSBOOT_FORCE_4K_SECTORS` to some specific value, so t= hat the condition `[ "$ZFSBOOT_FORCE_4K_SECTORS" ]` evaluates to false. Actual Behavior =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On line 833 in `//usr.sbin/bsdinstall/scripts/zfsboot` we have the if-state= ment if [ "$ZFSBOOT_FORCE_4K_SECTORS" ]; >From what I understand, it's only with the empty string argument that the `test` builtin evaluates to false. I.e., for this condition to be evaluated= to `false` requires `$ZFSBOOT_FORCE_4K_SECTORS` to be equal to the empty strin= g. But on line 74 in the above mentioned file we have : ${ZFSBOOT_FORCE_4K_SECTORS:=3D1} >From what I've understood from what I've read and tested, I conclude that t= his line will bind `ZFSBOOT_FORCE_4K_SECTORS=3D1` if `ZFSBOOT_FORCE_4K_SECTORS`= is unset or equal to the empty string. Therefore, I conclude that it's currently impossible to disable this option. Have I missed something, or is this a bug? --=20 You are receiving this mail because: You are the assignee for the bug.=