Merge lp:~jamesodhunt/ubuntu/vivid/initramfs-tools-ubuntu-core/mount-boot-partition-with-sync into lp:ubuntu/vivid/initramfs-tools-ubuntu-core

Proposed by James Hunt
Status: Merged
Merged at revision: 14
Proposed branch: lp:~jamesodhunt/ubuntu/vivid/initramfs-tools-ubuntu-core/mount-boot-partition-with-sync
Merge into: lp:ubuntu/vivid/initramfs-tools-ubuntu-core
Diff against target: 37 lines (+8/-4)
2 files modified
debian/changelog (+5/-1)
scripts/ubuntu-core-rootfs (+3/-3)
To merge this branch: bzr merge lp:~jamesodhunt/ubuntu/vivid/initramfs-tools-ubuntu-core/mount-boot-partition-with-sync
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+250802@code.launchpad.net

Description of the change

* Mount the boot partition with "sync" to minimise change of corruption.

This change probably shouldn't land until the snappy alpha 3 promotion is out.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

Looks good, with one comment - which I will fix up on merge.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-02-20 21:33:27 +0000
3+++ debian/changelog 2015-02-24 17:04:57 +0000
4@@ -1,8 +1,12 @@
5 initramfs-tools-ubuntu-core (0.7.4) UNRELEASED; urgency=medium
6
7+ [ Steve Langasek ]
8 * Point Vcs-Bzr at the UDD branch now that this package is in the archive.
9
10- -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 19 Feb 2015 07:36:50 -0800
11+ [ James Hunt ]
12+ * Mount the boot partition with "sync" to minimise change of corruption.
13+
14+ -- James Hunt <james.hunt@ubuntu.com> Tue, 24 Feb 2015 16:58:54 +0000
15
16 initramfs-tools-ubuntu-core (0.7.3) vivid; urgency=low
17
18
19=== modified file 'scripts/ubuntu-core-rootfs'
20--- scripts/ubuntu-core-rootfs 2015-02-20 21:33:27 +0000
21+++ scripts/ubuntu-core-rootfs 2015-02-24 17:04:57 +0000
22@@ -260,13 +260,13 @@
23 efidir="/boot/efi"
24 efibinddir="${efidir}/EFI/ubuntu/grub"
25 if [ -d "${rootmnt}/${efidir}" ]; then
26- echo "$boot_partition $efidir auto defaults 0 2" >> "$fstab"
27- echo "$efibinddir $bootdir none bind 0 0" >> "$fstab"
28+ echo "$boot_partition $efidir auto sync 0 2" >> "$fstab"
29+ echo "$efibinddir $bootdir none bind,sync 0 0" >> "$fstab"
30 fi
31 else
32 bootdir="$ubootdir"
33
34- echo "$boot_partition $bootdir auto defaults 0 2" >> "$fstab"
35+ echo "$boot_partition $bootdir auto sync 0 2" >> "$fstab"
36 fi
37 fi
38

Subscribers

People subscribed via source and target branches

to all changes: