# [OmniOS-discuss] pkg(5) in alternate roots

Dan McDonald danmcd at omniti.com
Wed Jul 1 17:40:27 UTC 2015

- Previous message: [OmniOS-discuss] pkg(5) in alternate roots
- Next message: [OmniOS-discuss] pkg(5) in alternate roots
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    > On Jul 1, 2015, at 9:20 AM, Jim Klimov <jim at cos.ru> wrote:
    >
    > The corresponding part of the script (and exact command-lines involved) are here:
    >
    >
    > ...
    >
    >         { echo "===== Updating PKG software itself"
    >           ### This clause should fail if no 'pkg' updates were available, or if a
    >           ### chrooted upgrade attempt with the new 'pkg' failed - both ways fall
    >           ### through to altroot upgrade attempt
    >           if /usr/bin/pkg -R "$BENEW_MNT" update --no-refresh --accept --deny-new-be --no-backup-be pkg; then \
    >             echo "===== Updating the image with new PKG software via chroot"
    >             chroot "$BENEW_MNT" /usr/bin/pkg -R / image-update --no-refresh --accept --deny-new-be --no-backup-be
    >           else false; fi; } || \
    >         { echo "===== Updating the image with old PKG software via altroot"
    >           /usr/bin/pkg -R "$BENEW_MNT" image-update --no-refresh --accept --deny-new-be --no-backup-be; } || \
    >         { echo "===== Updating the image with old PKG software via altroot and allowed refresh"
    >           /usr/bin/pkg -R "$BENEW_MNT" image-update --accept --deny-new-be --no-backup-be; }

    Can you run these, one at a time, by hand, so we all can see the exact output per command that's run?  It'll help at least me get a better bead on what's wrong.

    Thanks,
    Dan

- Previous message: [OmniOS-discuss] pkg(5) in alternate roots
- Next message: [OmniOS-discuss] pkg(5) in alternate roots
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the OmniOS-discuss mailing list