Page MenuHomeFreeBSD

Skip adding swap lines to /etc/fstab if swap is 0 sized
ClosedPublic

Authored by allanjude on May 16 2015, 11:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 8:38 AM
Unknown Object (File)
Sat, Apr 27, 8:38 AM
Unknown Object (File)
Sat, Apr 27, 8:38 AM
Unknown Object (File)
Sat, Apr 27, 8:38 AM
Unknown Object (File)
Sat, Apr 27, 7:17 AM
Unknown Object (File)
Jan 27 2024, 12:19 PM
Unknown Object (File)
Dec 22 2023, 9:25 PM
Unknown Object (File)
Nov 28 2023, 6:14 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

allanjude retitled this revision from to Skip adding swap lines to /etc/fstab if swap is 0 sized.
allanjude updated this object.
allanjude edited the test plan for this revision. (Show Details)

LGTM. But this is better reviewed by somebody who knows their way around bsdinstall. :)

eadler edited edge metadata.

this counts as mentor and src approval. Go ahead

This revision is now accepted and ready to land.May 17 2015, 12:52 AM
This revision was automatically updated to reflect the committed changes.
This revision is now accepted and ready to land.May 22 2015, 2:25 PM
allanjude edited edge metadata.

Fix syntax error found by Michael Dexter and Devin Teske

This revision now requires review to proceed.May 22 2015, 2:27 PM
dteske edited edge metadata.

Let "sh -n filename" be your friend, my friend ;D

In this case, the output of "sh -n zfsboot" was spot-on:
zfsboot: 979: Syntax error: "else" unexpected (expecting "then")

The proposed revision fixes the problem and I approve of this revision (adding "; then"). Thanks Allan.

This revision is now accepted and ready to land.May 22 2015, 3:33 PM