Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2022 14:41:03 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        "karels@freebsd.org" <karels@FreeBSD.org>, dev-commits-src-main@freebsd.org
Subject:   RE: git: d670a8f7c596 - main - growfs_fstab: add new /etc/rc.d script to add swap to fstab
Message-ID:  <3F68EC4A-1D8A-409B-81D0-BECE377EFBE7@yahoo.com>
References:  <3F68EC4A-1D8A-409B-81D0-BECE377EFBE7.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Karels <karels_at_FreeBSD.org> wrote on
Date: Sat, 10 Dec 2022 19:41:14 UTC :

> The branch main has been updated by karels:
>=20
> URL: =
https://cgit.FreeBSD.org/src/commit/?id=3Dd670a8f7c596fd387823644c5cbf1dde=
e788eee4
>=20
> commit d670a8f7c596fd387823644c5cbf1ddee788eee4
> Author: Mike Karels <karels@FreeBSD.org>
> AuthorDate: 2022-12-10 19:39:59 +0000
> Commit: Mike Karels <karels@FreeBSD.org>
> CommitDate: 2022-12-10 19:39:59 +0000
>=20
> growfs_fstab: add new /etc/rc.d script to add swap to fstab
>=20
> The growfs_fstab script is a helper for the growfs script to add any
> new swap partition to /etc/fstab on first boot. If growfs adds a
> swap partition, it sets growfs_swap_pdev in the kenv. In this case,
> after the root file system is read/write, if there is no swap =
partition
> in the fstab, growfs_fstab adds growfs_swap as a swap partition to the
> fstab. Also, it runs dumpon to add the swap partition (as this
> happened earlier in the startup sequence).
>=20
> Discussed with: cperciva
> Differential Revision: https://reviews.freebsd.org/D37463
> . . .

I tried the new main [so: 14] snapshot, dd'd to a USB3 SSD and booted:

snaphot: =
FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20221224-c89209c674f2-259842.img
so: FreeBSD 14.0-CURRENT #0 main-n259842-c89209c674f2: Sat Dec 24 =
05:52:28 UTC 2022

Result (from the serial console capture):

Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 599506 free (242 frags, 74908 blocks, 0.0% =
fragmentation)
/etc/rc.d/growfs: 203: Syntax error: "(" unexpected (expecting "}")


Looks to be the ' in "Don't" in a supposed #comment that that instead =
matches a prior awk use of ' unintentionally. Later in the line is: =
"(decimal)" that supplies the "(" reported.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F68EC4A-1D8A-409B-81D0-BECE377EFBE7>