Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jan 2019 09:03:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 234686] sysutils/ec2-scripts: ec2_ephemeralswap always causes syntax error after FreeBSD 11
Message-ID:  <bug-234686-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234686

            Bug ID: 234686
           Summary: sysutils/ec2-scripts: ec2_ephemeralswap always causes
                    syntax error after FreeBSD 11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cperciva@FreeBSD.org
          Reporter: meta@FreeBSD.org
             Flags: maintainer-feedback?(cperciva@FreeBSD.org)
          Assignee: cperciva@FreeBSD.org

/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: checkyesno:
ec2_ephemeralswap_enable is set to YES.
/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: checkyesno:
ec2_ephemeralswap_enable is set to YES.
/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: run_rc_command: doit: :
/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: checkyesno:
ec2_ephemeralswap_enable is set to YES.
/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: run_rc_command: doit:
ec2_ephemeralswap_run
expr: syntax error
[: -lt: unexpected operator
/usr/local/etc/rc.d/ec2_ephemeralswap: DEBUG: EC2 ephemeral disks are
No ephemeral disks are available, so no swap space is being created.

This is caused around line 54 since after FreeBSD 11, SWZONESTRUCTS is alwa=
ys
empty. `vmstat -z` no longer returns SWAPMETA.

> SWZONESTRUCTS=3D`vmstat -z | tr -d , | awk '/^SWAPMETA/ { print $3 }'`

Probably the script should refer `swblk` instead. See also what's changed in
sys/vm/swap_pager.c between FreeBSD 10 and 11.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234686-7788>