Skip to content

Commit 4ed160d

Browse files
committed
Merge branch 'master' into OS-8525
2 parents 2b37f25 + c8da9f7 commit 4ed160d

File tree

3 files changed

+156
-15
lines changed

3 files changed

+156
-15
lines changed

CONTRIBUTING.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!--
2+
This Source Code Form is subject to the terms of the Mozilla Public
3+
License, v. 2.0. If a copy of the MPL was not distributed with this
4+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
5+
-->
6+
7+
<!--
8+
Copyright 2019 Joyent, Inc.
9+
Copyright 2024 MNX Cloud, Inc.
10+
-->
11+
12+
# Triton Contribution Guidelines
13+
14+
Thanks for using SmartOS and for considering contributing to it!
15+
16+
## Code
17+
18+
All changes to Triton project repositories go through code review via a GitHub
19+
pull request.
20+
21+
If you're making a substantial change, you probably want to contact developers
22+
[on the mailing list or IRC](README.md#community) first. If you have any trouble
23+
with the contribution process, please feel free to contact developers [on the
24+
mailing list or IRC](README.md#community). Note that larger Triton project
25+
changes are typically designed and discussed via ["Requests for Discussion
26+
(RFDs)"](https://github.com/TritonDataCenter/rfd).
27+
28+
SmartOS repositories use the [Triton Engineering
29+
Guidelines](https://github.com/TritonDataCenter/eng/blob/master/docs/index.md).
30+
Notably:
31+
32+
* The #master or #main branch should be first-customer-ship (FCS) quality at all
33+
times. Don't push anything until it's tested.
34+
* All repositories should be "make check" clean at all times.
35+
* All repositories should have tests that run cleanly at all times.
36+
37+
## Issues
38+
39+
There are two separate issue trackers that are relevant for SmartOS code:
40+
41+
* An internal JIRA instance.
42+
43+
A JIRA ticket has an ID like `OS-7260`, where "OS" is the JIRA project
44+
name -- in this case used by the
45+
[smartos-live](https://github.com/TritonDataCenter/smartos-live) and related
46+
repos. A read-only view of most JIRA tickets is made available at
47+
<https://smartos.org/bugview/> (e.g.
48+
<https://smartos.org/bugview/OS-7260>).
49+
* GitHub issues for the relevant repo, e.g.
50+
<https://github.com/TritonDataCenter/smartos-ui/issues>.
51+
52+
Before Triton was open sourced, Joyent engineering used a private JIRA instance.
53+
While we continue to use JIRA internally, we also use GitHub issues for
54+
tracking -- primarily to allow interaction with those without access to JIRA.
55+
56+
## Code of Conduct
57+
58+
All persons and/or organizations contributing to, or intercting with our
59+
repositories or communities are required to abide by the
60+
[illumos Code of Conduct][coc].
61+
62+
[coc]: https://github.com/TritonDataCenter/illumos-joyent/blob/master/CODE_OF_CONDUCT.md

src/piadm.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@ config_check() {
206206
return
207207
fi
208208

209+
if grep -sq us-east.manta.joyent.com $PIADM_CONF ; then
210+
# If they have a broken config with the stale joyent name,
211+
# nuke it.
212+
printf 'WARNING: Removing stale image server ' >&2
213+
printf '(us-east.manta.joyent.com)\n' >&2
214+
rm "${PIADM_CONF:?}"
215+
fi
216+
209217
OLD_DEFAULT="$DEFAULT_URL_PREFIX"
210218
if [[ -f $PIADM_CONF ]]; then
211219
. $PIADM_CONF
@@ -220,7 +228,6 @@ config_check() {
220228
PIADM_CONFIG_VERSION=1
221229
cat <<EOF > $PIADM_CONF
222230
PIADM_CONFIG_VERSION=$PIADM_CONFIG_VERSION
223-
DEFAULT_URL_PREFIX=$DEFAULT_URL_PREFIX
224231
EOF
225232

226233
fi
@@ -620,13 +627,15 @@ update_boot_sectors() {
620627

621628
# Use fstyp to confirm if this is a manually created EFI
622629
# System Partition (ESP)
623-
type=$(fstyp "/dev/dsk/${boot_devices[0]}s0")
630+
type=$(fstyp "/dev/dsk/${boot_devices[0]}s0" 2>/dev/null)
624631
if [[ "$type" == "pcfs" ]]; then
625632
# If we detect PCFS on s0, it's LIKELY an EFI System
626633
# Partition that was crafted manually. Use s1 if it's
627634
# ZFS, or bail if it's not.
628635

629-
s1type=$(fstyp "/dev/dsk/${boot_devices[0]}s1")
636+
s1type=$(
637+
fstyp "/dev/dsk/${boot_devices[0]}s1" 2>/dev/null
638+
)
630639
if [[ "$s1type" != "zfs" ]]; then
631640
fatal "Unusual configuration," \
632641
"${boot_devices[0]}s1 not ZFS"

src/vm/node_modules/VM.js

Lines changed: 82 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)