mkjail.sh

Check-in [2bca9da27d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:It's 2019 baby
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:2bca9da27dbaab06da0b75a9c29ceccc161820a147b0d108ca2578ac9dc980ec
User & Date: feld 2019-03-08 15:42:25
Context
2019-03-08
16:38
doc is no longer a set in 12.0 and it's not really needed anyway Leaf check-in: 99ad1b1d41 user: feld tags: master, trunk
15:42
It's 2019 baby check-in: 2bca9da27d user: feld tags: master, trunk
15:39
Numbering is hard check-in: cd874cb5a9 user: feld tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/bin/mkjail.

1
2
3
4
5
6
7
8
9
10
11
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
# Lazy, dirty tool for creating fat jails.
#-
# Copyright (c) 2018 Mark Felder
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
................................................................................
usage: mkjail command [options]

Commands:
    create      -- Create jail
    update      -- Update jail with latest FreeBSD security/errata patches
    upgrade     -- Upgrade jail to a newer RELEASE

mkjail.sh: 2018, feld@FreeBSD.org

HELP
exit 0
}

[ $# -lt 1 ] && show_help




|







 







|







1
2
3
4
5
6
7
8
9
10
11
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
# Lazy, dirty tool for creating fat jails.
#-
# Copyright (c) 2019 Mark Felder
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
................................................................................
usage: mkjail command [options]

Commands:
    create      -- Create jail
    update      -- Update jail with latest FreeBSD security/errata patches
    upgrade     -- Upgrade jail to a newer RELEASE

mkjail.sh: 2019, feld@FreeBSD.org

HELP
exit 0
}

[ $# -lt 1 ] && show_help

Changes to src/share/mkjail/create.sh.

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        -a Architecture (i386, amd64, etc)
	-f Flavour (copy in files after creation)
	-h View this help
	-j Jail name
	-s Sets: "base doc games lib32"
	-v Version of jail (9.3-RELEASE, 10.1-RELEASE, etc)

mkjail.sh: 2018, feld@FreeBSD.org

HELP
}

exit_opts_req() {
    echo "Both -j and -v must be specified." >&2
    echo ""







|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        -a Architecture (i386, amd64, etc)
	-f Flavour (copy in files after creation)
	-h View this help
	-j Jail name
	-s Sets: "base doc games lib32"
	-v Version of jail (9.3-RELEASE, 10.1-RELEASE, etc)

mkjail.sh: 2019, feld@FreeBSD.org

HELP
}

exit_opts_req() {
    echo "Both -j and -v must be specified." >&2
    echo ""

Changes to src/share/mkjail/update.sh.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cat <<HELP
usage: mkjail update [-a] | [-j JAILNAME]

        -a Update all running jails
        -h Show help
        -j Jail name

mkjail.sh: 2018, feld@FreeBSD.org

HELP
exit 0
}

# option parsing has to happen below the show_help
# shift to skip the first argument or getopts loses its mind







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cat <<HELP
usage: mkjail update [-a] | [-j JAILNAME]

        -a Update all running jails
        -h Show help
        -j Jail name

mkjail.sh: 2019, feld@FreeBSD.org

HELP
exit 0
}

# option parsing has to happen below the show_help
# shift to skip the first argument or getopts loses its mind

Changes to src/share/mkjail/upgrade.sh.

86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
usage: mkjail upgrade [-a] [-v VERSION] | [-j JAILNAME] [-v VERSION]

        -a Upgrade all running jails
        -h Show help
        -j Jail name
        -v FreeBSD version (e.g., 11.1-RELEASE)

mkjail.sh: 2018, feld@FreeBSD.org

HELP
exit 0
}

# option parsing has to happen below the show_help
# shift to skip the first argument or getopts loses its mind







|







86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
usage: mkjail upgrade [-a] [-v VERSION] | [-j JAILNAME] [-v VERSION]

        -a Upgrade all running jails
        -h Show help
        -j Jail name
        -v FreeBSD version (e.g., 11.1-RELEASE)

mkjail.sh: 2019, feld@FreeBSD.org

HELP
exit 0
}

# option parsing has to happen below the show_help
# shift to skip the first argument or getopts loses its mind