-MAKEDEV mem null port zero core full ram tty console fd \
- hda hdb hdc hdd sda sdb sdc sdd loop sd
-mknod /dev/ptmx c 5 2; chmod 0666 /dev/ptmx
+# Must do each MAKEDEV individually, because if one device fails,
+# MAKEDEV will quit without creating the rest (RHBZ#507374).
+for dev in mem null port zero core full ram tty console fd \
+ hda hdb hdc hdd sda sdb sdc sdd loop sd; do
+ MAKEDEV $dev ||:
+done
+mknod /dev/ptmx c 5 2; chmod 0666 /dev/ptmx