Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 639
    • Issues 639
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 194
    • Merge Requests 194
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #6128

Closed
Open
Opened Sep 09, 2016 by Serge VS@sergevs42

cloud-init image resize functionality does not work

cloud-init has cc_growpart module (which is configured by default) responsible
for resize image according to the size of the configured for an instance flavour.

however that functionality does not work because:

  1. cc_growpart module ( /usr/lib/python2.7/site-packages/cloudinit/config/cc_growpart.py )
    depends on /dev/block/ device links which should be created by udev.
  2. nor udev or eudev daemons supplied by alpine packages create the links with default configuration
  3. growpart script ( part of https://launchpad.net/cloud-utils ) which do the actual resize work is
    not supplied for alpine.

there are several ways to fix the issue. here is one of it:

  1. patch cc_growpart.py with the provided in attach patch to get a rid of udev dependency
  2. add growpart script to the cloud-init package. can be downloaded from
    http://bazaar.launchpad.net/~cloud-utils-dev/cloud-utils/trunk/download/head:/growpart-20110225134600-d84xgz6209r194ob-1/growpart
    the script have to be placed to /usr/bin
  3. patch growpart with the provided in attach patch. yes, it will not work without it :)
  4. add dependencies on sfdisk and parted packages to cloud-init. well, i know it do the same but i have no intentions
    to rewrite and maintain growpart script.

i have tested the provided way and it’s working.

(from redmine: issue id 6128, created on 2016-09-09)

  • Uploads:
    • cc_growpart.py.patch
    • growpart.patch
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#6128