--- trunk/installer-simple/bin/installer.sh.in 2014/01/07 14:28:13 2437 +++ trunk/installer-simple/bin/installer.sh.in 2014/01/07 14:42:51 2440 @@ -574,13 +574,6 @@ rm ${INSTALLROOT}/root/.installrc } -is_initrd_supported() -{ - # only generate initrds if the cmd exists - [[ -x ${INSTALLROOT}/sbin/mkinitrd ]] && return 0 - return 1 -} - install_initrd_chroot() { # only generate initrds if the cmd exists @@ -642,25 +635,6 @@ return 1 } -get_uuid() -{ - local UUID - local SEC_TYPE - local TYPE - - local dev="$1" - [[ -z ${dev} ]] && dialog_die "no dev given" - - # check if given device is already an UUID - if [[ ${dev/UUID=/}x != ${dev}x ]] - then - eval "${dev}" - else - eval $(busybox.mkinitrd blkid ${dev} | grep "${dev}:" | sed 's/.*:\ //') - fi - echo "${UUID}" -} - install_system_settings() { # schreibe fstab @@ -720,11 +694,16 @@ dialog_install_settings sleep 1 install_system_settings - dialog_install_initrd - install_initrd_chroot + if is_initrd_supported + then + dialog_install_initrd + initrd_config + initrd_install + fi dialog_install_bootsector - install_bootsector_chroot + bootloader_config + bootloader_install install_umount_rootfs dialog_install_successful @@ -743,11 +722,16 @@ dialog_install_settings sleep 1 install_system_settings - dialog_install_initrd - install_initrd_chroot + if is_initrd_supported + then + dialog_install_initrd + initrd_config + initrd_install + fi dialog_install_bootsector - install_bootsector_chroot + bootloader_config + bootloader_install install_umount_rootfs dialog_install_successful