diff --git a/elements/deploy/root.d/50-redhat-prepare-fs b/elements/deploy/root.d/50-redhat-prepare-fs deleted file mode 100755 index 317d4fe4..00000000 --- a/elements/deploy/root.d/50-redhat-prepare-fs +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -e - -[ -n "$TARGET_ROOT" ] - -DISTRO=`lsb_release -si` || true - -if [[ "Fedora RedHatEnterpriseServer" =~ "$DISTRO" ]]; then - mkdir -p "$TARGET_ROOT/usr" - ln -s ../lib "$TARGET_ROOT/usr/lib" - if [ "`uname -m`" = "x86_64" ]; then - ln -s lib "$TARGET_ROOT/lib64" - fi -fi diff --git a/lib/ramdisk-functions b/lib/ramdisk-functions index dd5d4b60..e3a8e04c 100644 --- a/lib/ramdisk-functions +++ b/lib/ramdisk-functions @@ -43,6 +43,16 @@ function create_ramdisk_base () { mkdir -p "$TMP_MOUNT_PATH/var/run" mkdir -p "$TMP_MOUNT_PATH/lib/udev/rules.d" + DISTRO=`lsb_release -si` || true + + if [[ "Fedora RedHatEnterpriseServer" =~ "$DISTRO" ]]; then + mkdir -p "$TMP_MOUNT_PATH/usr" + ln -s ../lib "$TMP_MOUNT_PATH/usr/lib" + if [ "`uname -m`" = "x86_64" ]; then + ln -s lib "$TMP_MOUNT_PATH/lib64" + fi + fi + if [ -e $LIB_UDEV/rules.d/50-firmware.rules ]; then cp -a "$LIB_UDEV/rules.d/50-firmware.rules" "$TMP_MOUNT_PATH/lib/udev/rules.d" fi