New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 736180 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

"swap disable" error: no such file or directory

Project Member Reported by semenzato@chromium.org, Jun 23 2017

Issue description

Running "swap disable" without first running "swap enable" produces the ENOENT error above and doesn't disable swap.

As a workaround, issue these commands:

swap enable 4000
swap disable

After doing this once, the problem is gone.
 
Owner: semenzato@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ab4842b5117c45fcc4c52aabe7f06b08e8658c0c

commit ab4842b5117c45fcc4c52aabe7f06b08e8658c0c
Author: Luigi Semenzato <semenzato@chromium.org>
Date: Sat Jun 24 05:56:46 2017

swap.sh: fix "swap disable" bug

Fix it by consolidating all persistent variable
settings to use the "create_write_file" function.

BUG= chromium:736180 
TEST=ran on device, enable/disable, remove /var/lib/swap sometime, try other variables too

Change-Id: Ied8fc715177a7d31902ae205e40b7cbe4c30d574
Reviewed-on: https://chromium-review.googlesource.com/545259
Commit-Ready: Luigi Semenzato <semenzato@chromium.org>
Tested-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Ben Cheng <bccheng@chromium.org>

[rename] https://crrev.com/ab4842b5117c45fcc4c52aabe7f06b08e8658c0c/chromeos-base/swap-init/swap-init-0.0.1-r19.ebuild
[modify] https://crrev.com/ab4842b5117c45fcc4c52aabe7f06b08e8658c0c/chromeos-base/swap-init/files/init/swap.sh

Status: Fixed (was: Untriaged)

Comment 4 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment