Merge lp:~dannf/ubuntu/trusty/cloud-initramfs-tools/lp1411294 into lp:ubuntu/trusty/cloud-initramfs-tools

Proposed by dann frazier
Status: Merged
Merge reported by: dann frazier
Merged at revision: not available
Proposed branch: lp:~dannf/ubuntu/trusty/cloud-initramfs-tools/lp1411294
Merge into: lp:ubuntu/trusty/cloud-initramfs-tools
Diff against target: 59 lines (+20/-0)
2 files modified
debian/changelog (+7/-0)
overlayroot/scripts/init-bottom/overlayroot (+13/-0)
To merge this branch: bzr merge lp:~dannf/ubuntu/trusty/cloud-initramfs-tools/lp1411294
Reviewer Review Type Date Requested Status
Scott Moser Approve
Review via email: mp+259528@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

i had approved in email with dan.
he uploaded.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2014-03-25 17:22:34 +0000
+++ debian/changelog 2015-05-19 17:49:56 +0000
@@ -1,3 +1,10 @@
1cloud-initramfs-tools (0.25ubuntu1.14.04.1) trusty-proposed; urgency=medium
2
3 * overlayroot: use required 'workdir' option on overlayfs mount for
4 kernels >= 3.18 (LP: #1411294)
5
6 -- dann frazier <dannf@ubuntu.com> Tue, 19 May 2015 11:31:29 -0600
7
1cloud-initramfs-tools (0.25ubuntu1) trusty; urgency=medium8cloud-initramfs-tools (0.25ubuntu1) trusty; urgency=medium
29
3 * cloud-initramfs-copymods: Add new package that is useful10 * cloud-initramfs-copymods: Add new package that is useful
411
=== modified file 'overlayroot/scripts/init-bottom/overlayroot'
--- overlayroot/scripts/init-bottom/overlayroot 2013-08-27 16:48:53 +0000
+++ overlayroot/scripts/init-bottom/overlayroot 2015-05-19 17:49:56 +0000
@@ -557,10 +557,18 @@
557overlayroot_driver=${overlayroot_driver:-overlayfs}557overlayroot_driver=${overlayroot_driver:-overlayfs}
558558
559# settings based on overlayroot_driver559# settings based on overlayroot_driver
560workdir=""
560case "${overlayroot_driver}" in561case "${overlayroot_driver}" in
561 overlayfs)562 overlayfs)
562 mount_type="overlayfs"563 mount_type="overlayfs"
563 mount_opts="-o lowerdir=${root_ro},upperdir=${root_rw}/${dir_prefix}"564 mount_opts="-o lowerdir=${root_ro},upperdir=${root_rw}/${dir_prefix}"
565 # 3.18+ require 'workdir=' option.
566 case "$(uname -r)" in
567 2*|3.1[01234567]*|3.[0-9].*) :;;
568 *)
569 workdir="${dir_prefix%/}-workdir"
570 mount_opts="${mount_opts},workdir=${root_rw}/${workdir}";;
571 esac
564 mount_opts="${mount_opts} overlayroot ${ROOTMNT}"572 mount_opts="${mount_opts} overlayroot ${ROOTMNT}"
565 ;;573 ;;
566 aufs)574 aufs)
@@ -599,6 +607,9 @@
599mkdir -p "${root_rw}/${dir_prefix}" ||607mkdir -p "${root_rw}/${dir_prefix}" ||
600 fail "failed to create ${dir_prefix} on ${device}"608 fail "failed to create ${dir_prefix} on ${device}"
601609
610[ -z "$workdir" ] || mkdir -p "$root_rw/${workdir}" ||
611 fail "failed to create workdir '$workdir' on ${device}"
612
602# root is mounted on ${ROOTMNT}, move it to ${ROOT_RO}.613# root is mounted on ${ROOTMNT}, move it to ${ROOT_RO}.
603mount --move "${ROOTMNT}" "${root_ro}" ||614mount --move "${ROOTMNT}" "${root_ro}" ||
604 fail "failed to move root away from ${ROOTMNT} to ${root_ro}"615 fail "failed to move root away from ${ROOTMNT} to ${root_ro}"
@@ -609,9 +620,11 @@
609# errors and leave the system in a wired state. 620# errors and leave the system in a wired state.
610621
611# mount virtual fs ${ROOTMNT} with rw-fs ${root_rw} on top or ro-fs ${root_ro}.622# mount virtual fs ${ROOTMNT} with rw-fs ${root_rw} on top or ro-fs ${root_ro}.
623debug mount -t "$mount_type" $mount_opts
612mount -t "$mount_type" $mount_opts624mount -t "$mount_type" $mount_opts
613if [ $? -ne 0 ]; then625if [ $? -ne 0 ]; then
614 log_fail "failed to create new ro/rw layered ${ROOTMNT}"626 log_fail "failed to create new ro/rw layered ${ROOTMNT}"
627 log_fail "mount command was: mount -t $mount_type $mount_opts"
615 # do recovery and try resoring the mount for ${ROOTMNT}628 # do recovery and try resoring the mount for ${ROOTMNT}
616 mount --move ${root_ro} ${ROOTMNT}629 mount --move ${root_ro} ${ROOTMNT}
617 if [ $? -ne 0 ]; then630 if [ $? -ne 0 ]; then

Subscribers

People subscribed via source and target branches

to all changes: