Merge lp:~ubuntu-branches/ubuntu/oneiric/mountall/oneiric-201106072111 into lp:ubuntu/oneiric/mountall

Proposed by James Westby
Status: Merged
Merge reported by: Steve Langasek
Merged at revision: not available
Proposed branch: lp:~ubuntu-branches/ubuntu/oneiric/mountall/oneiric-201106072111
Merge into: lp:ubuntu/oneiric/mountall
Diff against target: 232 lines (+47/-29) (has conflicts)
9 files modified
conf/Makefile.am (+1/-1)
conf/Makefile.in (+1/-1)
conf/mounted-run.conf (+11/-12)
configure (+10/-10)
configure.ac (+1/-1)
debian/changelog (+19/-0)
debian/control (+2/-1)
debian/maintscript (+1/-0)
src/fstab (+1/-3)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/oneiric/mountall/oneiric-201106072111
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+63765@code.launchpad.net

Description of the change

The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/oneiric/mountall now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/mountall/oneiric-201106072111. A merge should be performed if necessary.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hi,

It looks like Scott had the /run change staged in bzr and the new
upload wasn't started in bzr.

Thanks,

James

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

James, are you handling this? It isn't clear from the conversation with yourself what is going on. :)

Revision history for this message
James Westby (james-w) wrote :

On Wed, 13 Jul 2011 14:36:01 -0000, Jamie Strandboge <email address hidden> wrote:
> James, are you handling this? It isn't clear from the conversation with yourself what is going on. :)

Nope, the proposal was made by a bot impersonating me (should be fixed
soon). My subsequent comment was just from a quick look to see what was
going on, in the hope it would help someone understand what they were
looking at in this case.

Thanks,

James

Revision history for this message
Kees Cook (kees) wrote :

So... can this merge request be rejected, or am I not following?

Revision history for this message
James Westby (james-w) wrote :

On Tue, 19 Jul 2011 21:41:31 -0000, Kees Cook <email address hidden> wrote:
> So... can this merge request be rejected, or am I not following?

It can be rejected if we don't want these changes, or if they have been
done in a different manner:

+ * Add /run to /lib/init/fstab; this is mounted with a very strict
+ set of permissions.
+ * Removed /var/run, /var/lock and /lib/init/rw from /lib/init/fstab;
+ these are replaced by symlinks to /run, /run/lock and /run
+ respectively.
+
+ * Renamed /etc/init/mounted-varrun.conf to /etc/init/mounted-run.conf,
+ fixed paths within it and added mkdir command to create /run/lock
+ which is the target of the /var/lock symlink
+ * Drop copy of files from /dev/.initramfs/varrun; this will be handled
+ by initramfs creating that as a symlink to /run in the first place.

Scott made the changes and put them in bzr, indicating that they were
useful, but apparently didn't upload them.

I haven't looked any further than to determine that this was a
legitimate case where a merge proposal such as this should have been
filed by the bot, so I can't say whether we want these changes or not.

Thanks,

James

Revision history for this message
Scott Moser (smoser) wrote :

I've gone through the changes in the submitted branch and done a merge. The
end result is that applying the following patch to trunk would bring in all of
Scott's changes that have not been done.

mounted-run.conf:
  I am not sure how permissions on /run/lock are getting set in oneiric at the
  moment, but my system does have 1777 on it. Perhaps it is handled in /run/lock
  has its own entry in src/fstab, in Scott's version it did not.

src/fstab:
 It would seem to me that the src/fstab changes are sane.
  * my booted oneiric system does not have /lib/init/rw in /proc/mounts, so
    this is probably handled somewhere, but seems like it makes sense to
    remove the src/fstab entry
 * Scott's entry added 'nodev'. It seems reasonable to me.

My suggestion is that Steve or Colin look at this and decide if the delta can
be dropped or not. I'm hoping that my summarizing changes here makes that
easier.

=== modified file 'conf/mounted-run.conf'
--- conf/mounted-run.conf 2011-07-13 23:41:17 +0000
+++ conf/mounted-run.conf 2011-07-22 14:41:44 +0000
@@ -9,13 +9,12 @@
 task

 script
+ mkdir -m 1777 -p "/run/lock"
+
     : > "/run/utmp"
     chmod 664 "/run/utmp"
     chgrp utmp "/run/utmp"

- # compatibility; should go away soon
- [ -d /dev/.initramfs/varrun ] && cp -a /dev/.initramfs/varrun/* /run/ || true
-
     mkdir -p /run/sendsigs.omit.d

     # Background the initial motd seeding

=== modified file 'src/fstab'
--- src/fstab 2011-07-13 14:48:13 +0000
+++ src/fstab 2011-07-22 14:50:39 +0000
@@ -16,7 +16,6 @@
 none /dev devtmpfs,tmpfs mode=0755 0 0
 none /dev/pts devpts noexec,nosuid,gid=tty,mode=0620 0 0
 none /tmp none defaults 0 0
-none /run tmpfs noexec,nosuid,size=10%,mode=0755 0 0
+none /run tmpfs nodev,noexec,nosuid,size=10%,mode=0755 0 0
 none /run/lock tmpfs nodev,noexec,nosuid,size=5242880 0 0
 none /run/shm tmpfs nosuid,nodev 0 0
-none /lib/init/rw tmpfs mode=0755,nosuid,optional 0 0

Revision history for this message
Steve Langasek (vorlon) wrote :

The one change that should be applied is to drop /lib/init/rw from src/fstab. This is now always a symlink to /run, so the fstab entry is superfluous.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'conf/Makefile.am'
2--- conf/Makefile.am 2011-03-08 00:52:17 +0000
3+++ conf/Makefile.am 2011-06-07 21:16:51 +0000
4@@ -8,6 +8,6 @@
5 mountall-shell.conf \
6 mounted-debugfs.conf \
7 mounted-dev.conf \
8- mounted-varrun.conf \
9+ mounted-run.conf \
10 mounted-proc.conf \
11 mounted-tmp.conf
12
13=== modified file 'conf/Makefile.in'
14--- conf/Makefile.in 2011-03-08 00:52:17 +0000
15+++ conf/Makefile.in 2011-06-07 21:16:51 +0000
16@@ -278,7 +278,7 @@
17 mountall-shell.conf \
18 mounted-debugfs.conf \
19 mounted-dev.conf \
20- mounted-varrun.conf \
21+ mounted-run.conf \
22 mounted-proc.conf \
23 mounted-tmp.conf
24
25
26=== renamed file 'conf/mounted-varrun.conf' => 'conf/mounted-run.conf'
27--- conf/mounted-varrun.conf 2010-07-22 15:13:09 +0000
28+++ conf/mounted-run.conf 2011-06-07 21:16:51 +0000
29@@ -1,24 +1,23 @@
30-# mounted-varrun - Populate /var/run filesystem
31+# mounted-run - Populate /run filesystem
32 #
33-# Populates the /var/run filesystem, creating the empty utmp file
34-
35-description "Populate /var/run filesystem"
36-
37-start on mounted MOUNTPOINT=/var/run TYPE=tmpfs
38-env MOUNTPOINT=/var/run
39+# Populates the /run filesystem, creating the empty utmp file
40+
41+description "Populate /run filesystem"
42+
43+start on mounted MOUNTPOINT=/run TYPE=tmpfs
44+env MOUNTPOINT=/run
45
46 task
47
48 script
49+ mkdir -m 1777 -p "${MOUNTPOINT}/lock"
50+
51 : > "${MOUNTPOINT}/utmp"
52 chmod 664 "${MOUNTPOINT}/utmp"
53 chgrp utmp "${MOUNTPOINT}/utmp"
54
55- [ -d /dev/.initramfs/varrun ] && cp -a /dev/.initramfs/varrun/* "${MOUNTPOINT}" || true
56-
57- mkdir -p /var/run/sendsigs.omit.d
58+ mkdir -p "${MOUNTPOINT}/sendsigs.omit.d"
59
60 # Background the initial motd seeding
61- [ -d "/etc/update-motd.d" ] && run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd &
62-
63+ [ -d "/etc/update-motd.d" ] && run-parts --lsbsysinit /etc/update-motd.d > "${MOUNTPOINT}/motd" &
64 end script
65
66=== modified file 'configure'
67--- configure 2011-04-13 12:59:22 +0000
68+++ configure 2011-06-07 21:16:51 +0000
69@@ -1,6 +1,6 @@
70 #! /bin/sh
71 # Guess values for system-dependent variables and create Makefiles.
72-# Generated by GNU Autoconf 2.67 for mountall 2.26.
73+# Generated by GNU Autoconf 2.67 for mountall 2.27.
74 #
75 # Report bugs to <ubuntu-devel@lists.ubuntu.com>.
76 #
77@@ -703,8 +703,8 @@
78 # Identity of this package.
79 PACKAGE_NAME='mountall'
80 PACKAGE_TARNAME='mountall'
81-PACKAGE_VERSION='2.26'
82-PACKAGE_STRING='mountall 2.26'
83+PACKAGE_VERSION='2.27'
84+PACKAGE_STRING='mountall 2.27'
85 PACKAGE_BUGREPORT='ubuntu-devel@lists.ubuntu.com'
86 PACKAGE_URL=''
87
88@@ -1511,7 +1511,7 @@
89 # Omit some internal or obsolete options to make the list less imposing.
90 # This message is too long to be a string in the A/UX 3.1 sh.
91 cat <<_ACEOF
92-\`configure' configures mountall 2.26 to adapt to many kinds of systems.
93+\`configure' configures mountall 2.27 to adapt to many kinds of systems.
94
95 Usage: $0 [OPTION]... [VAR=VALUE]...
96
97@@ -1581,7 +1581,7 @@
98
99 if test -n "$ac_init_help"; then
100 case $ac_init_help in
101- short | recursive ) echo "Configuration of mountall 2.26:";;
102+ short | recursive ) echo "Configuration of mountall 2.27:";;
103 esac
104 cat <<\_ACEOF
105
106@@ -1725,7 +1725,7 @@
107 test -n "$ac_init_help" && exit $ac_status
108 if $ac_init_version; then
109 cat <<\_ACEOF
110-mountall configure 2.26
111+mountall configure 2.27
112 generated by GNU Autoconf 2.67
113
114 Copyright (C) 2010 Free Software Foundation, Inc.
115@@ -2328,7 +2328,7 @@
116 This file contains any messages produced by compilers while
117 running configure, to aid debugging if configure makes a mistake.
118
119-It was created by mountall $as_me 2.26, which was
120+It was created by mountall $as_me 2.27, which was
121 generated by GNU Autoconf 2.67. Invocation command line was
122
123 $ $0 $@
124@@ -4476,7 +4476,7 @@
125
126 # Define the identity of the package.
127 PACKAGE='mountall'
128- VERSION='2.26'
129+ VERSION='2.27'
130
131
132 cat >>confdefs.h <<_ACEOF
133@@ -18075,7 +18075,7 @@
134 # report actual input values of CONFIG_FILES etc. instead of their
135 # values after options handling.
136 ac_log="
137-This file was extended by mountall $as_me 2.26, which was
138+This file was extended by mountall $as_me 2.27, which was
139 generated by GNU Autoconf 2.67. Invocation command line was
140
141 CONFIG_FILES = $CONFIG_FILES
142@@ -18141,7 +18141,7 @@
143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
144 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
145 ac_cs_version="\\
146-mountall config.status 2.26
147+mountall config.status 2.27
148 configured by $0, generated by GNU Autoconf 2.67,
149 with options \\"\$ac_cs_config\\"
150
151
152=== modified file 'configure.ac'
153--- configure.ac 2011-04-13 12:59:22 +0000
154+++ configure.ac 2011-06-07 21:16:51 +0000
155@@ -1,7 +1,7 @@
156 # Process this file with autoconf to produce a configure script.
157
158 AC_PREREQ(2.62)
159-AC_INIT([mountall], [2.26], [ubuntu-devel@lists.ubuntu.com])
160+AC_INIT([mountall], [2.27], [ubuntu-devel@lists.ubuntu.com])
161 AC_COPYRIGHT([[Copyright © 2010 Canonical Ltd.]])
162 AC_CONFIG_SRCDIR([src/mountall.c])
163 AC_CONFIG_MACRO_DIR([m4])
164
165=== modified file 'debian/changelog'
166--- debian/changelog 2011-06-07 12:16:22 +0000
167+++ debian/changelog 2011-06-07 21:16:51 +0000
168@@ -1,3 +1,4 @@
169+<<<<<<< TREE
170 mountall (2.26) oneiric; urgency=low
171
172 * Correct grammar on user-visible strings
173@@ -5,6 +6,24 @@
174
175 -- Bryce Harrington <bryce@ubuntu.com> Tue, 07 Jun 2011 12:16:22 -0700
176
177+=======
178+mountall (2.27) UNRELEASED; urgency=low
179+
180+ * Add /run to /lib/init/fstab; this is mounted with a very strict
181+ set of permissions.
182+ * Removed /var/run, /var/lock and /lib/init/rw from /lib/init/fstab;
183+ these are replaced by symlinks to /run, /run/lock and /run
184+ respectively.
185+
186+ * Renamed /etc/init/mounted-varrun.conf to /etc/init/mounted-run.conf,
187+ fixed paths within it and added mkdir command to create /run/lock
188+ which is the target of the /var/lock symlink
189+ * Drop copy of files from /dev/.initramfs/varrun; this will be handled
190+ by initramfs creating that as a symlink to /run in the first place.
191+
192+ -- Scott James Remnant <scott@netsplit.com> Tue, 03 May 2011 13:53:45 -0700
193+
194+>>>>>>> MERGE-SOURCE
195 mountall (2.25ubuntu1) natty; urgency=low
196
197 * Fixed two errors found while browsing the code: 1) find_mount("/") returns
198
199=== modified file 'debian/control'
200--- debian/control 2010-03-31 18:26:18 +0000
201+++ debian/control 2011-06-07 21:16:51 +0000
202@@ -3,10 +3,11 @@
203 Priority: required
204 Maintainer: Scott James Remnant <scott@ubuntu.com>
205 Standards-Version: 3.8.0.0
206-Build-Depends: debhelper (>= 7.3.15ubuntu2~boot7), pkg-config (>= 0.22), libnih-dev (>= 1.0.0), libnih-dbus-dev (>= 1.0.0), nih-dbus-tool (>= 1.0.0), libdbus-1-dev (>= 1.2.16), libexpat1-dev (>= 2.0.0), libudev-dev (>= 146), libplymouth-dev (>= 0.8.1-3)
207+Build-Depends: debhelper (>= 8.1.0), pkg-config (>= 0.22), libnih-dev (>= 1.0.0), libnih-dbus-dev (>= 1.0.0), nih-dbus-tool (>= 1.0.0), libdbus-1-dev (>= 1.2.16), libexpat1-dev (>= 2.0.0), libudev-dev (>= 146), libplymouth-dev (>= 0.8.1-3)
208
209 Package: mountall
210 Architecture: any
211+Pre-Depends: ${misc:Pre-Depends}
212 Depends: makedev, udev, plymouth, coreutils (>= 7.1), ${shlibs:Depends}, ${misc:Depends}
213 Replaces: upstart (<< 0.6.3-2)
214 Breaks: usplash (<< 0.5.47), policycoreutils (<< 2.0.69-2ubuntu4)
215
216=== added file 'debian/maintscript'
217--- debian/maintscript 1970-01-01 00:00:00 +0000
218+++ debian/maintscript 2011-06-07 21:16:51 +0000
219@@ -0,0 +1,1 @@
220+mv_conffile /etc/init/mounted-varrun.conf /etc/init/mounted-run.conf
221
222=== modified file 'src/fstab'
223--- src/fstab 2009-12-13 20:51:40 +0000
224+++ src/fstab 2011-06-07 21:16:51 +0000
225@@ -17,6 +17,4 @@
226 none /dev/pts devpts noexec,nosuid,gid=tty,mode=0620 0 0
227 none /dev/shm tmpfs nosuid,nodev 0 0
228 none /tmp none defaults 0 0
229-none /var/run tmpfs mode=0755,nosuid,showthrough 0 0
230-none /var/lock tmpfs nodev,noexec,nosuid,showthrough 0 0
231-none /lib/init/rw tmpfs mode=0755,nosuid,optional 0 0
232+none /run tmpfs mode=0755,nodev,noexec,nosuid 0 0

Subscribers

People subscribed via source and target branches

to all changes: