~ubuntu-branches/ubuntu/wily/initramfs-tools-ubuntu-core/wily

« back to all changes in this revision

Viewing changes to scripts/ubuntu-core-rootfs

  • Committer: Package Import Robot
  • Author(s): Oliver Grawert
  • Date: 2015-08-20 11:05:56 UTC
  • Revision ID: package-import@ubuntu.com-20150820110556-u03e2lv5jkrg2vr8
Tags: 0.7.8
* add hook to copy sfdisk, blockdev, dirname, realpath and resize2fs in place
* add "resize" local-premount script to resize the writable
  partition to full disk size if the free space on the writable media
  is more than 10%. keeps a log in /run/initramfs/resize-writable.log
* drop creation of already existing /run/initramfs dir in ubuntu-core-rootfs
  else all former logs get wiped in that dir, /init creates it as one of
  the very first steps.
* add dependency on realpath and coreutils, since we use binaries from both
  in the resize script

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
 
209
209
        # Mount the writable partition to a temporary mount point
210
210
        # (to allow it to be move-mounted on top of the read-only root).
211
 
        mkdir -p "/run/initramfs" || true
212
211
        logfile="/run/initramfs/fsck-${writable_label}"
213
212
 
214
213
        echo "initrd: checking filesystem for ${writable_label} partition" >/dev/kmsg || true