3 # /usr/share/e2fsprogs/initrd.ext3-add-journal
6 mount -nt proc proc proc
7 rootdev=$(cat proc/sys/kernel/real-root-dev)
8 cmdline=$(cat /proc/cmdline)
10 if [ $rootdev != 256 -a $rootdev != 255 ]; then
11 mount -nt tmpfs tmpfs /dev2
13 roottype=`/bin/e2initrd_helper -r /dev2/root2`
14 if test -n "$roottype" ; then
15 mount -nt tmpfs tmpfs /etc
18 if test "$roottype" = "ext3" ; then
19 /sbin/tune2fs -O has_journal /dev2/root2 > /dev/null 2>&1
21 /sbin/tune2fs -O ^has_journal /dev2/root2 > /dev/null 2>&1
26 umount -n /proc > /dev/null 2>&1