Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 666
    • Issues 666
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 283
    • Merge requests 283
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Our ARM infrastructure is unreachable at the moment, so CI jobs will time-out and packages will not be updated until the servers are back.

  • alpinealpine
  • aportsaports
  • Issues
  • #6128
Closed
Open
Issue created 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 an admin enable hashed storage. More information
Assignee
Assign to
Time tracking