Browse Source

Benjamin Schieder:


			
			
				rocklinux
			
			
		
Benjamin Schieder 19 years ago
parent
commit
fc78692400
3 changed files with 11 additions and 2 deletions
  1. +4
    -2
      package/base/device-mapper/etc_conf_dm_initrd_dm
  2. +2
    -0
      package/base/device-mapper/etc_stone.d_mod_dm.sh
  3. +5
    -0
      package/base/rockinitrd/init

+ 4
- 2
package/base/device-mapper/etc_conf_dm_initrd_dm

@ -100,7 +100,8 @@ while read device mountpoint status ; do
fi
[ "${mountpoint}" == "/" ] && rootfsmounted=1
echo "done"
echo "Remember to change the status of ${device} to encrypted using stone."
sed -e "s,^${device}\(.*\)encrypt,${device}\\1encrypted," -i /root/etc/conf/dm/mounts
recreateinitrd=1
echo "Press enter to continue"
read < /dev/console
continue
@ -186,7 +187,8 @@ while read device mountpoint status ; do
fi
[ "${mountpoint}" == "/" ] && rootfsmounted=1
echo "done"
echo "Remember to change the status of ${device} to 'plain' using stone."
sed -e "s,^${device}\(.*\)decrypt,${device}\\1plain," -i /root/etc/conf/dm/mounts
recreateinitrd=1
echo "Press enter to continue"
read < /dev/console
continue

+ 2
- 0
package/base/device-mapper/etc_stone.d_mod_dm.sh

@ -119,5 +119,7 @@ modprobe $x # added by mod_dm
[ -e "/sbin/fsck.${fs}" ] && echo "/sbin/fsck.${fs} /sbin/fsck.${fs}"
done < <( mount ) | sort | uniq >>/etc/conf/initrd/initrd_dm
echo "/sbin/fsck /sbin/fsck" >>/etc/conf/initrd/initrd_dm
mkinitrd
}

+ 5
- 0
package/base/rockinitrd/init

@ -50,6 +50,7 @@ PATH="/sbin:/usr/sbin:/bin/:/usr/bin"
rootfs=""
rootfsmounted=0
recreateinitrd=0
mount -n -t tmpfs tmpfs /tmp || echo "Can't mount tmpfs!"
mount -n -t proc proc /proc || echo "Can't mount procfs!"
@ -107,4 +108,8 @@ killall udevd
# additional programs can be applied (like persistent storage, et alas)
emit_udev_events
if [ "${recreateinitrd}" != "0" ] ; then
echo "Recreating initrd"
chroot . /sbin/mkinitrd < /dev/console > /dev/console 2>&1
fi
exec chroot . $real_init "${@}" < /dev/console > /dev/console 2>&1

Loading…
Cancel
Save