Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: geninitrd/geninitrd
- ===================================================================
- --- geninitrd/geninitrd (wersja 11877)
- +++ geninitrd/geninitrd (kopia robocza)
- @@ -1309,6 +1309,9 @@
- if [ "$INITRDFS" = "initramfs" ]; then
- initrd_gen_initramfs_switchroot
- + if is_ues "$BOOT_SPLASH"; then
- + initramfs_gen_bootsplash $DESTDIR
- + fi
- else
- umount_all
- fi
- Index: geninitrd/mod-bootsplash.sh
- ===================================================================
- --- geninitrd/mod-bootsplash.sh (wersja 11877)
- +++ geninitrd/mod-bootsplash.sh (kopia robocza)
- @@ -56,3 +56,42 @@
- fi
- done
- }
- +
- +
- +# generate initrd fragment
- +# @access public
- +initramfs_gen_bootsplash() {
- + local target="$1"
- +
- + debug "Generating bootsplash"
- +
- + if [ ! -x /bin/splash.bin ]; then
- + warn "Failed to execute /bin/splash.bin. Is bootsplash package installed?"
- + return
- + fi
- +
- + if [ -r /etc/sysconfig/bootsplash ]; then
- + . /etc/sysconfig/bootsplash
- + fi
- +
- + if [ -z "$THEME" ]; then
- + warn "Please configure your /etc/sysconfig/bootsplash first."
- + warn "Generating bootsplashes skipped."
- + return
- + fi
- +
- + if [ -z "$BOOT_SPLASH_RESOLUTIONS" ]; then
- + warn "No BOOT_SPLASH_RESOLUTIONS specified in /etc/sysconfig/bootsplash."
- + warn "Not adding bootsplash to initrd."
- + fi
- +
- + local res
- + for res in $BOOT_SPLASH_RESOLUTIONS; do
- + if [ -f "/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg" ]; then
- + $bootsplash_geninitramfs -s -f "/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg" > "${target}/bootsplash" && \
- + debug "Added $res $THEME theme to initramfs."
- + else
- + warn "/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg doesn't exist, skipped"
- + fi
- + done
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement