mkjail.sh

Check-in [73b796ff96]
Login

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

Overview
Comment:Force fetching always
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:73b796ff96e0d01c9efd0f8fb20936a545e3a23a11f6a241c7b2885fb85c052f
User & Date: feld 2018-10-03 17:03:25
Context
2018-10-04
14:36
Fix showing usage when done upgrading check-in: 044dce0f14 user: feld tags: master, trunk
2018-10-03
17:03
Force fetching always check-in: 73b796ff96 user: feld tags: master, trunk
16:57
Commit missing files. I don't understand why my merge from the other branch did't do this... check-in: bb7ddbd8cd user: feld tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    echo "Updating all jails..."
    echo ""
    for i in $(jls -q name); do
      echo "Updating ${i} jail..."
      echo ""
      export UNAME_r=$(zfs get -H mkjail:version ${JAILROOT}/${i} | awk '{print $3}')
      freebsd-update -b ${JAILROOT}/${i} -f ${JAILROOT}/${i}/etc/freebsd-update.conf fetch install
    done
    exit 0
}

_onejail()
{
    echo "Updating ${JAILNAME} jail..."
    echo ""
    export UNAME_r=$(zfs get -H mkjail:version ${JAILROOT}/${JAILNAME} | awk '{print $3}')
    freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf fetch install
    exit 0
}

show_help() {
cat <<HELP
usage: mkjail update [-a] | [-j JAILNAME]








|









|







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    echo "Updating all jails..."
    echo ""
    for i in $(jls -q name); do
      echo "Updating ${i} jail..."
      echo ""
      export UNAME_r=$(zfs get -H mkjail:version ${JAILROOT}/${i} | awk '{print $3}')
      freebsd-update -b ${JAILROOT}/${i} -f ${JAILROOT}/${i}/etc/freebsd-update.conf -F fetch install
    done
    exit 0
}

_onejail()
{
    echo "Updating ${JAILNAME} jail..."
    echo ""
    export UNAME_r=$(zfs get -H mkjail:version ${JAILROOT}/${JAILNAME} | awk '{print $3}')
    freebsd-update -b ${JAILROOT}/${JAILNAME} -f ${JAILROOT}/${JAILNAME}/etc/freebsd-update.conf -F fetch install
    exit 0
}

show_help() {
cat <<HELP
usage: mkjail update [-a] | [-j JAILNAME]