Merge lp:~martin-ohlson/linaro-image-tools/apt-get-notification-bug-651906 into lp:linaro-image-tools/11.11
Proposed by
Martin Ohlsson
Status: | Merged |
---|---|
Merged at revision: | 169 |
Proposed branch: | lp:~martin-ohlson/linaro-image-tools/apt-get-notification-bug-651906 |
Merge into: | lp:linaro-image-tools/11.11 |
Diff against target: |
17 lines (+6/-0) 1 file modified
linaro-media-create (+6/-0) |
To merge this branch: | bzr merge lp:~martin-ohlson/linaro-image-tools/apt-get-notification-bug-651906 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guilherme Salgado (community) | Approve | ||
Review via email:
|
Description of the change
Notify user that "apt-get" will be run in target roofs.
This adds a notification to the user that "apt-get" will be run in target
rootfs when installing hwpack.
I haven't been able to run the script for test/verification. I'm waiting on the IT department to install Ubuntu on my company computer. This branch is proposed for merging because it contains a very trivial fix.
Regards,
Martin
To post a comment you must log in.
Hi Martin,
Thanks for this fix! I have just a few comments/ suggestions below.
review approve
On Thu, 2010-11-18 at 08:48 +0000, Martin Ohlsson wrote:
[...]
> This adds a notification to the user that "apt-get" will be run in target
> rootfs when installing hwpack.
>
> I haven't been able to run the script for test/verification. I'm waiting on the IT department to install Ubuntu on my company computer. This branch is proposed for merging because it contains a very trivial fix.
It is trivial indeed, but to be double sure it doesn't break anything I
did create an image using your branch and it worked just fine.
> === modified file 'linaro- media-create'
> --- linaro-media-create 2010-11-09 20:48:16 +0000
> +++ linaro-media-create 2010-11-18 08:48:13 +0000
> @@ -360,6 +360,8 @@
> sudo umount -v "$chroot/proc"
> }
>
> + echo ""
> + echo "Installing (apt-get) hwpack $HWPACK_FILE in target roofs."
The package filename should make it clear it's a hwpack so you can
probably drop the 'hwpack' from the sentence above. Oh, and there's a
typo there: roofs
> sudo LC_ALL=C chroot "$chroot" linaro- hwpack- install /"$(basename "$HWPACK_FILE")"
>
I think it'd be nice to also print something when the installation in
the rootfs has finished, maybe using a dashed line (for it to stand out)
or something like that. What do you think?
If you like the idea you may also want to use a dashed line (instead of
a blank one) in the previous message.
> # Revert some changes we did to the rootfs as we don't want them in the
>
-- /launchpad. net/~salgado>
Guilherme Salgado <https:/