Merge lp:~andreserl/maas/use_squashfs_filesystem_2 into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | Andres Rodriguez on 2012-10-03 |
| Approved revision: | 1136 |
| Merged at revision: | 1152 |
| Proposed branch: | lp:~andreserl/maas/use_squashfs_filesystem_2 |
| Merge into: | lp:maas/trunk |
| Diff against target: |
201 lines (+76/-5) 7 files modified
contrib/maas-http.conf (+6/-0) contrib/preseeds_v2/generic (+11/-1) contrib/preseeds_v2/preseed_master (+3/-0) scripts/maas-import-pxe-files (+13/-0) scripts/maas-import-squashfs (+2/-2) src/maasserver/preseed.py (+12/-1) src/maasserver/tests/test_preseed.py (+29/-1) |
| To merge this branch: | bzr merge lp:~andreserl/maas/use_squashfs_filesystem_2 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2012-10-02 | Approve on 2012-10-02 | |
|
Review via email:
|
|||
Commit Message
Make use of squashfs when install quantal or up
| Andres Rodriguez (andreserl) wrote : | # |
| Gavin Panella (allenap) wrote : | # |
Looks good :)
As discussed on IRC, there aren't any tests for the templates, but
then there aren't any for the other templates, only general "does
templating work" tests. Because of the confusion with Tempita's
inheritance mechanism, I think we need to revisit this area after
12.10 anyway.
[1]
+ return BootImage.
+ arch, subarch, node.get_
My one suggestion would be to change "filesystem" to "squashfs" or
something more descriptive.
| Andres Rodriguez (andreserl) wrote : | # |
Hi Gavin,
The squashfs image is the root filesystem image, hence the name. I think it
is appropriate to categorize it that way (as it is now - filesystem).
Cheers
On Oct 2, 2012 3:19 PM, "Andres Rodriguez" <email address hidden> wrote:
> Andres Rodriguez has proposed merging
> lp:~andreserl/maas/use_squashfs_filesystem_2 into lp:maas.
>
> Requested reviews:
> Launchpad code reviewers (launchpad-
>
> For more details, see:
>
> https:/
> --
>
> https:/
> You are the owner of lp:~andreserl/maas/use_squashfs_filesystem_2.
>
> === modified file 'contrib/
> --- contrib/
> +++ contrib/
> @@ -45,6 +45,12 @@
> SetHandler None
> </Directory>
>
> +# Serve squashfs images
> +Alias /MAAS/static/
> +<Directory /var/lib/
> + SetHandler None
> +</Directory>
> +
> # Serve files from staticfiles.
> Alias /MAAS/static/ /usr/share/
> <Directory /usr/share/
>
> === modified file 'contrib/
> --- contrib/
> +++ contrib/
> @@ -1,7 +1,17 @@
> {{inherit "preseed_master"}}
> +
> +{{def squashfs_image}}
> +{{if node.distro_series in {'quantal'} and node.architecture in
> {'i386/generic', 'amd64/generic'} and use_squashfs is True }}
> +d-i preseed/
> +d-i live-installer/
> +d-i live-installer/mode select normal
> +d-i live-installer/
> {{server_
> +{{endif}}
> +{{enddef}}
> +
> {{def proxy}}
> d-i mirror/country string manual
> -{{if node.architecture in {'i386', 'amd64'} }}
> +{{if node.architecture in {'i386/generic', 'amd64/generic'} }}
> d-i mirror/
> d-i mirror/
> {{else}}
>
> === modified file 'contrib/
> --- contrib/
> +++ contrib/
> @@ -3,6 +3,9 @@
> # * Cloud-init for bare-metal
> # * Cloud-init preseed data
>
> +# Squashfs Installation
> +{{self.
> +
> # Locale
> d-i debian-
>
>
> === modified file 'scripts/
> --- scripts/
> +++ scripts/
> @@ -45,6 +45,10 @@
> # Default is yes.
> IMPORT_
>
> +# Whether to download squashfs images as well: "1" for yes, "0" for no.
> +# Default is yes.
> +IMPORT_
> +
> # Whether to download ephemeral images as well: "1" for yes, "0" for no.
> # Default is yes.
> IMPORT_
> @@ -1...
| Gavin Panella (allenap) wrote : | # |
On 2 October 2012 23:26, Andres Rodriguez <email address hidden> wrote:
> The squashfs image is the root filesystem image, hence the name. I think it
> is appropriate to categorize it that way (as it is now - filesystem).
The problem is that the function is called is_squashfs_
but it looks for "filesystem" via BootImage. The boot image scanner
makes assumptions about the files within a leaf directory, and doesn't
record them in the database.
The squashfs code is piggybacking on top of the tftp code, so, unless
you change that boot image code, it ought to work with the scheme as
it is. Hence the idea for putting "squashfs" somewhere in the path
where the boot image scanner will find it.
It's not very important though, I just wanted to make you aware of it.
| Andres Rodriguez (andreserl) wrote : | # |
Would it make more sense to change it to is_filesystem_
- commissioning - > Is a hint to the purpose
- install -> Is hint to the purpose
So, that's why I added the "filesystem", to give a hint of what it is, or the purpose of it. Ideally, however, I would have loved to have this under install/, but that would result in overwriting the directory
- filesystem -> hint of the purpose
Other than that, I don't really mind having it change to "squashfs". If you prefer i can just change it to squashfs (which will require to change maas-import-
Cheers
| MAAS Lander (maas-lander) wrote : | # |
No commit message specified.


So Fixed the issue raised by allenap in the code.
The issues about the preseeds evaluating arch... it was discussed with him that symlinking preseeds on arch bases or inheriting would be too much complexity. For now leaving as is.