Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to devel-udev grimoire by Ladislav Hagara (7cd8abcbe9ec8b1f1d8dd54513d44c9044241de4)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Arjan Bouter <abouter AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to devel-udev grimoire by Ladislav Hagara (7cd8abcbe9ec8b1f1d8dd54513d44c9044241de4)
  • Date: Wed, 18 May 2011 12:55:54 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 17 May 2011 14:20:19 -0500
Ladislav Hagara <scm AT sourcemage.org> wrote:

> GIT changes to devel-udev grimoire by Ladislav Hagara <hgr AT vabo.cz>:
>
> smgl/init.d/DETAILS | 2 +-
> smgl/init.d/HISTORY | 5 +++++
> smgl/init.d/PRE_BUILD | 7 +++++++
> smgl/init.d/init.d/devices | 2 --
> 4 files changed, 13 insertions(+), 3 deletions(-)
>
> New commits:
> commit 7cd8abcbe9ec8b1f1d8dd54513d44c9044241de4
> Author: Ladislav Hagara <hgr AT vabo.cz>
> Commit: Ladislav Hagara <hgr AT vabo.cz>
>
> init.d: ramfs on /dev removed, devtmpfs required

This will kill the box of everyone with static /dev as their carefully
created /dev tree (on which they build their config files) vanishes and is
replaced with a tmpfs.

>
> diff --git a/smgl/init.d/DETAILS b/smgl/init.d/DETAILS
> index e1a99fd..43f9bd6 100755
> --- a/smgl/init.d/DETAILS
> +++ b/smgl/init.d/DETAILS
> @@ -1,5 +1,5 @@
> SPELL=init.d
> - VERSION=2.2.8
> + VERSION=2.2.9
> 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 288822f..9ea8d8a 100644
> --- a/smgl/init.d/HISTORY
> +++ b/smgl/init.d/HISTORY
> @@ -1,3 +1,8 @@
> +2011-05-17 Ladislav Hagara <hgr AT vabo.cz>
> + * DETAILS: 2.2.9
> + * PRE_BUILD: check for CONFIG_DEVTMPFS_MOUNT added
> + * init.d/devices: ramfs on /dev removed, devtmpfs required
> +
> 2011-04-23 Ladislav Hagara <hgr AT vabo.cz>
> * DETAILS: 2.2.8
> * init.d/devices: /run mounted for udev
> diff --git a/smgl/init.d/PRE_BUILD b/smgl/init.d/PRE_BUILD
> index 077e14d..102c9af 100755
> --- a/smgl/init.d/PRE_BUILD
> +++ b/smgl/init.d/PRE_BUILD
> @@ -1,3 +1,10 @@
> +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 &&

so the init.d spell fails for everybody who has NOT got the new kernel
option enabled. This includes everybody who has a static /dev tree.

> +
> # 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 8b6f2a3..d30c067 100755
> --- a/smgl/init.d/init.d/devices
> +++ b/smgl/init.d/init.d/devices
> @@ -41,8 +41,6 @@ udev_mknodes()
> start_udev()
> { (
> . /etc/udev/udev.conf
> - echo "Mounting ramfs at $udev_root"
> - mount -n -t ramfs none $udev_root
> echo "Mounting tmpfs at /run"
> mount -n -t tmpfs tmpfs /run
> # create some needed stuff
> _______________________________________________
> SM-Commit mailing list
> SM-Commit AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-commit

/run needs to be there if udev is used or not. it's place is with /proc and
friends or right at the top of the devices script.

Try not to forget about the people who don't use udev or those who don't feel
like having to deal with yet another layer in /dev.

Thanks,
Arjan

+=======
Source Mage GNU/Linux developer,
http://www.sourcemage.org
GnuPG Key 79D4B14E = 94AD 3FD1 E259 67ED 632E 2B06 CFBE 1154 79D4 B14E
+===
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3TpboACgkQz74RVHnUsU4lBwCeKDo/AtyLI5FXyi9rV/xsSpck
HqcAn0iTsABKARvnf6GddZNfwK6d+vXB
=Rh+L
-----END PGP SIGNATURE-----



Archive powered by MHonArc 2.6.24.

Top of Page