Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487088 - OpenRC: swap init script fails with busybox as sh
Summary: OpenRC: swap init script fails with busybox as sh
Status: RESOLVED DUPLICATE of bug 468598
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-06 12:07 UTC by Patrick Lauer
Modified: 2013-10-06 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-10-06 12:07:44 UTC
Steps to reproduce:

1) ln -s /bin/busybox /bin/sh

2) reboot

 * Activating swap devices ...
swapon: invalid option -- e
BusyBox v1.20.2 (2013-09-06 00:05:09 UTC) multi-call binary.

Usage: swapon [-a] [-p PRI] [DEVICE]

Start swapping on DEVICE

        -a      Start swapping on all swap devices
        -p PRI  Set swap device priority

 [ ok ]

looking at the swap init script:
Linux)          swapon -a -e >/dev/null;;

so the busybox builtin takes precedence because it's not using the absolute path.

... maybe hardcoding the full path to swapon makes sense?
Comment 1 William Hubbs gentoo-dev 2013-10-06 16:48:37 UTC

*** This bug has been marked as a duplicate of bug 468598 ***