Correct operation/finish_install/97update_initrd_noraid.sh

This commit is contained in:
Peng Zhihui
2014-05-16 17:26:30 +08:00
parent 27fed5d1a1
commit f8624a8ba9

View File

@@ -1,7 +1,7 @@
#!/bin/bash
instmode=`cat /proc/cmdline | sed 's/.*instmode=\([^ ]*\).*/\1/'`
if [ instmode == 'NoRaid' ];then
if [ $instmode == "NoRaid" ];then
mkdir -p /mnt/boot/t
cd /mnt/boot/t
zcat /mnt/boot/initrd.img-2.6.32.41-Rocky4.2-x86_64 |cpio -di