Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Issue 5867003: Remount autodir after reboot. (Closed)

Created:
10 years ago by DaleCurtis
Modified:
9 years, 7 months ago
Reviewers:
ericli
CC:
chromium-os-reviews_chromium.org, truty+cc_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli, petkov+cc_chromium.org
Visibility:
Public.

Description

After reboot, Autotest wasn't remounting the exec capable version; causing a second copy of Autotest to be installed to the mount point. Change-Id: I9af4d361fd49194706fa916f0ac97eb6686b9f32 BUG=chromium-os:10445 TEST=Running in production. Ran unit-tests. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=ac52f54

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M server/autotest.py View 1 chunk +9 lines, -0 lines 3 comments Download
M server/autotest_unittest.py View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
DaleCurtis
10 years ago (2010-12-17 02:08:32 UTC) #1
ericli
http://codereview.chromium.org/5867003/diff/1/server/autotest.py File server/autotest.py (right): http://codereview.chromium.org/5867003/diff/1/server/autotest.py#newcode87 server/autotest.py:87: host.run('mount -o remount,exec ' + autodir) could you consolidate ...
10 years ago (2010-12-17 04:24:18 UTC) #2
DaleCurtis
http://codereview.chromium.org/5867003/diff/1/server/autotest.py File server/autotest.py (right): http://codereview.chromium.org/5867003/diff/1/server/autotest.py#newcode87 server/autotest.py:87: host.run('mount -o remount,exec ' + autodir) I can do ...
10 years ago (2010-12-17 17:46:07 UTC) #3
ericli
10 years ago (2010-12-17 18:02:47 UTC) #4
LGTM.

http://codereview.chromium.org/5867003/diff/1/server/autotest.py
File server/autotest.py (right):

http://codereview.chromium.org/5867003/diff/1/server/autotest.py#newcode87
server/autotest.py:87: host.run('mount -o remount,exec ' + autodir)
I see, I also recalled _find_installable_dir() worked on an list of candidate
paths. I dont like that either, but seems more close to upstream design.

On 2010/12/17 17:46:07, dalec wrote:
> I can do this, but I'll have to add a new @classmethod. I know you'd
previously
> had reservations about this.
> 
> Additionally since this method is called so frequently, I'll have to unify
both
> methods to preserve the existing mount rather than unmounting and remounting
if
> it exists.
> 
> On 2010/12/17 04:24:18, ericli wrote:
> > could you consolidate this logic with _find_installable_dir(). Petty much
they
> > are duplicated.
>

Powered by Google App Engine
This is Rietveld 408576698