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
Reviewer Review Type Date Requested Status
Guilherme Salgado (community) Approve
Review via email: mp+41138@code.launchpad.net

Description of the change

Notify user that "apt-get" will be run in target roofs.

Bug #651906.

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.
Revision history for this message
Guilherme Salgado (salgado) wrote :

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
>

--
Guilherme Salgado <https://launchpad.net/~salgado>

review: Approve
Revision history for this message
Martin Ohlsson (martin-ohlson) wrote :

Thanks for the comments Guilherme,

I will fix the following things:

* Remove the "hwpack" word.
* Take care of the typo (good that you spotted that).
* Add a dashed line before and after the rootfs installation.

Regards,
Martin

On 18 November 2010 13:12, Guilherme Salgado <email address hidden> wrote:

> Review: Approve
> 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
> >
>
> --
> Guilherme Salgado <https://launchpad.net/~salgado<https://launchpad.net/%7Esalgado>
> >
>
>
> https://code.launchpad.net/~martin-ohlson/linaro-image-tools/apt-get-notification-bug-651906/+merge/41138<https://code.launchpad.net/%7Emartin-ohlson/linaro-image-tools/apt-get-notification-bug-651906/+merge/41138>
> You are the owner of
> lp:~martin-ohlson/linaro-image-tools/apt-get-notification-bug-651906.
>

Revision history for this message
Martin Ohlsson (martin-ohlson) wrote :

Thanks for the comments Guilherme,

I will fix the following things:

* Remove the "hwpack" word.
* Take care of the typo (good that you spotted that).
* Add a dashed line before and after the rootfs installation.

Regards,
Martin

168. By Martin Ohlsson

Emphasize the hwpack installation in target rootfs.

Bug #651906.

This commit adds an emphasized section for the hwpack installation
in target rootfs.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'linaro-media-create'
2--- linaro-media-create 2010-11-12 17:21:46 +0000
3+++ linaro-media-create 2010-11-19 06:20:08 +0000
4@@ -360,7 +360,13 @@
5 sudo umount -v "$chroot/proc"
6 }
7
8+ echo ""
9+ echo "---------------------------------------------------"
10+ echo "Installing (apt-get) $HWPACK_FILE in target rootfs."
11+ echo ""
12 sudo LC_ALL=C chroot "$chroot" linaro-hwpack-install /"$(basename "$HWPACK_FILE")"
13+ echo "---------------------------------------------------"
14+ echo ""
15
16 # Revert some changes we did to the rootfs as we don't want them in the
17 # image.

Subscribers

People subscribed via source and target branches