Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ebc61a3e99e2d11edaf5edf11135b9ba4856939c)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ebc61a3e99e2d11edaf5edf11135b9ba4856939c)
  • Date: Wed, 1 Oct 2008 00:59:31 -0500

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

initrd/sbin/smgl.init | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit ebc61a3e99e2d11edaf5edf11135b9ba4856939c
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

smgl.init: added missing items

Somehow a few things were missing from my version and what got
committed. This adds in missing lines (udevadm trigger and settle),
and fixes the shellout->shell naming.

diff --git a/initrd/sbin/smgl.init b/initrd/sbin/smgl.init
index 6b9c3bc..0690ce8 100755
--- a/initrd/sbin/smgl.init
+++ b/initrd/sbin/smgl.init
@@ -67,8 +67,9 @@ main() {

# Process init options directed at us
while [[ $# -gt 0 ]] ;do
- if [[ $1 == 'shellout' ]] ;then
+ if [[ $1 == 'shell' ]] ;then
echo "requested a shellout!"
+ shell
else
INITOPTS[i++]=$1
fi
@@ -110,6 +111,8 @@ main() {
continue
fi

+ umount -n /dev
+ umount -n /sys
umount -n /proc

cd $MOUNT
@@ -129,7 +132,7 @@ main() {

mount -n -t proc proc proc

- exec chroot . /sbin/init "${INITOPTS[@]}" <dev/console >dev/console 2>&1
+ exec /sbin/init "${INITOPTS[@]}" <dev/console >dev/console 2>&1

done

@@ -144,6 +147,10 @@ mount -n -t sysfs sys /sys
mount -n -t tmpfs dev /dev

udevd --daemon
+udevadm trigger
+udevadm settle --timeout=60
+
+kill $(pidof udevd)

KERNEL=`uname -r`
MOUNT=/mnt/cdrom



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ebc61a3e99e2d11edaf5edf11135b9ba4856939c), Justin Boffemmyer, 10/01/2008

Archive powered by MHonArc 2.6.24.

Top of Page