diff options
author | Ladislav Hagara | 2011-05-31 19:08:03 +0200 |
---|---|---|
committer | Ladislav Hagara | 2011-05-31 19:08:03 +0200 |
commit | 7193282772e7fb7a623db83752237b9cf799f00b (patch) | |
tree | eb5968938ce27a66067582ecf78d0bb4154dfab1 | |
parent | a6ddb6136bd4c476c01731089d313df9220cca04 (diff) |
init.d: mount ramfs on /dev if devtmpfs is not used
udev 171 is OK without devtmpfs, tested with several kernels
-rwxr-xr-x | smgl/init.d/DETAILS | 2 | ||||
-rw-r--r-- | smgl/init.d/HISTORY | 5 | ||||
-rwxr-xr-x | smgl/init.d/PRE_BUILD | 9 | ||||
-rwxr-xr-x | smgl/init.d/init.d/devices | 8 |
4 files changed, 14 insertions, 10 deletions
diff --git a/smgl/init.d/DETAILS b/smgl/init.d/DETAILS index 9138df97c3..d8e1abf192 100755 --- a/smgl/init.d/DETAILS +++ b/smgl/init.d/DETAILS @@ -1,5 +1,5 @@ SPELL=init.d - VERSION=2.2.10 + VERSION=2.2.11 LICENSE[0]=GPL GATHER_DOCS=off SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY index 48d77b8428..c1a5997f5e 100644 --- a/smgl/init.d/HISTORY +++ b/smgl/init.d/HISTORY @@ -1,3 +1,8 @@ +2011-05-31 Ladislav Hagara <hgr@vabo.cz> + * DETAILS: 2.2.11 + * PRE_BUILD: check for CONFIG_DEVTMPFS_MOUNT removed + * init.d/devices: mount ramfs on /dev if devtmpfs is not used + 2011-05-19 Ladislav Hagara <hgr@vabo.cz> * DETAILS: 2.2.10 * INSTALL: /run created diff --git a/smgl/init.d/PRE_BUILD b/smgl/init.d/PRE_BUILD index 725bc8fa5f..077e14d636 100755 --- a/smgl/init.d/PRE_BUILD +++ b/smgl/init.d/PRE_BUILD @@ -1,12 +1,3 @@ -if [[ "$DEVICES" == "udev" ]]; then - if [[ "$(get_kernel_config CONFIG_DEVTMPFS_MOUNT)" != "y" ]] - then - message "${SPELL_COLOR}$SPELL${DEFAULT_COLOR}${PROBLEM_COLOR} requires" \ - "CONFIG_DEVTMPFS and CONFIG_DEVTMPFS_MOUNT built-in${DEFAULT_COLOR}" && - return 1 - fi -fi && - # Remove old init.d persistent_add INITD_FIRST && INITD_FIRST=n && diff --git a/smgl/init.d/init.d/devices b/smgl/init.d/init.d/devices index e4f8962d73..b7c348426f 100755 --- a/smgl/init.d/init.d/devices +++ b/smgl/init.d/init.d/devices @@ -41,6 +41,14 @@ udev_mknodes() start_udev() { ( . /etc/udev/udev.conf + echo "Checking if devtmpfs or ramfs is used for $udev_root ..." + if grep devtmpfs /proc/mounts; then + echo "devtmpfs is used for $udev_root" + else + echo "ramfs is used for $udev_root" + echo "Mounting ramfs at $udev_root" + mount -n -t ramfs none $udev_root + fi # create some needed stuff udev_mknodes |