diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-July/017348.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-July/017348.html | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-July/017348.html b/zarb-ml/mageia-dev/2012-July/017348.html new file mode 100644 index 000000000..e453d4256 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-July/017348.html @@ -0,0 +1,158 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening? + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20MGA2%20Installer%20%2B%20Bootloader%20stage%20issue%3A%20initrd%0A%09regeneration%20not%20happening%3F&In-Reply-To=%3Cm3zk71dv0j.fsf%40euphor.blino.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="017345.html"> + <LINK REL="Next" HREF="017368.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening?</H1> + <B>Olivier Blin</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20MGA2%20Installer%20%2B%20Bootloader%20stage%20issue%3A%20initrd%0A%09regeneration%20not%20happening%3F&In-Reply-To=%3Cm3zk71dv0j.fsf%40euphor.blino.org%3E" + TITLE="[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening?">mageia at blino.org + </A><BR> + <I>Sun Jul 15 15:16:44 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="017345.html">[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening? +</A></li> + <LI>Next message: <A HREF="017368.html">[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#17348">[ date ]</a> + <a href="thread.html#17348">[ thread ]</a> + <a href="subject.html#17348">[ subject ]</a> + <a href="author.html#17348">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>> writes: +>>><i> In the post of mageia-theme-Default it has: +</I>>>><i> +</I>>>><i> if [ "$1" == "0" ]; then +</I>>>><i> /usr/sbin/plymouth-set-default-theme -R Mageia-Default +</I>>>><i> fi +</I>>>><i> +</I>>>><i> +</I>>>><i> This causes an initrd rebuild (-R argument) and doesn't check +</I>>>><i> DURING_INSTALL. +</I>>>><i> +</I>>>><i> That's the problem. +</I>>><i> +</I>>><i> Ah, I did not see that one. +</I>><i> +</I>><i> Yeah I missed it the first two times I looked at it too :p +</I>><i> +</I>>><i> There are two calls to plymouth-set-default-theme in this %post. +</I>>><i> Maybe we can just move the second one (with -R) upper to replace the +</I>>><i> first one? +</I>><i> +</I>><i> Well I think we should just drop it completely... +</I>><i> +</I>>><i>From my reading, if we're not in the installer then +</I>><i> /usr/share/bootsplash/scripts/switch-themes is used which takes care of +</I>><i> regenerating initrd if needed. +</I>><i> +</I>><i> If we're in the install then plymouth-set-default-theme gets called +</I>><i> anyway (without the -R). So to me it seems like this is just a redundant +</I>><i> call. +</I>><i> +</I>><i> The only thing I'd suggest is that we add a -u argument to switch-themes +</I>><i> to ensure it calls plymouth-set-default-theme internally. +</I> +It seems to be the contrary, switch-themes runs +plymouth-set-default-theme if no -u is supplied: + if [[ -z $update ]]; then + /usr/sbin/plymouth-set-default-theme $theme + fi + +><i> Although as we should likely try and phase out some of the black magic +</I>><i> of these bootsplash scripts, I'd actually rather just do something like +</I>><i> this in %post: +</I>><i> +</I>><i> +</I>><i> if [ -f /usr/share/mga/backgrounds/Mageia.png -a ! -f +</I>><i> /usr/share/mga/backgrounds/default.png -o -L +</I>><i> /usr/share/mga/backgrounds/default.png ]; then +</I>><i> rm -f /usr/share/mga/backgrounds/default.png +</I>><i> ln -s Mageia-Default-1600x1200.png /usr/share/mga/backgrounds/default.png +</I>><i> fi +</I>><i> +</I>><i> rm -f +</I>><i> /usr/share/mga/backgrounds/Mageia-Default-{0000,0700,1300,1800}.jpg ||: +</I>><i> rm -f /usr/share/mga/backgrounds/Mageia.xml ||: +</I>><i> rm -f +</I>><i> /usr/share/mdk/backgrounds/Mandriva-{Free,Flash,One,Powerpack}-{0000,0700,1300,1800}.jpg +</I>><i> ||: +</I>><i> rm -f /usr/share/mdk/backgrounds/Mandriva.xml ||: +</I>><i> +</I>><i> if [ -z "$DURING_INSTALL" ]; then +</I>><i> if [ -x /usr/share/bootsplash/scripts/switch-themes ]; then +</I>><i> /usr/share/bootsplash/scripts/switch-themes Mageia-Default +</I>><i> fi +</I>><i> fi +</I>><i> if [ -f /etc/sysconfig/bootsplash ]; then +</I>><i> perl -pi -e 's/^s*SPLASH=.*/SPLASH=auto/; +</I>><i> s/^s*THEME=.*/THEME=Mageia-Default/' /etc/sysconfig/bootsplash +</I>><i> fi +</I>><i> /usr/sbin/plymouth-set-default-theme Mageia-Default +</I> +This %post script always looked a bit convoluted to me, couldn't we move +all this in the switch-themes script? +We could even check directly DURING_INSTALL in there, since DrakX's +bootloader is not using this script to add the splash. + +That way, the %post script could be a one-liner, and reused easily in +other theme packages. + +><i> That seems to be the right thing to do generally for now and good enough +</I>><i> for an update (can you review and give your opinion?), but longer term, +</I>><i> I'd rather get rid of /etc/sysconfig/bootsplash completely in favour of +</I>><i> other ways to control the theme (e.g. using plymouth-set-theme directly, +</I>><i> and tweaking kernel command line options to either use or not the +</I>><i> plymouth support in the initrd. If users really want to strip plymouth +</I>><i> from the initrd they can drop a config in /etc/dracut.conf.d/ to put a line: +</I>><i> omit_dracutmodules+=" plymouth " +</I>><i> +</I>><i> which will prevent plymouth support in any subsequently generated initrd +</I>><i> (although if the "silent" kernel param is presented and plymouth is +</I>><i> still installed then it will still kick in after the initrd is finished +</I>><i> and the main system takes over. +</I>><i> +</I>><i> So uninstall plymouth is likely the best option for the purists (and I +</I>><i> may need to tweak dracut requires on that front)! +</I> +Ok + +-- +Olivier Blin - blino +</PRE> + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="017345.html">[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening? +</A></li> + <LI>Next message: <A HREF="017368.html">[Mageia-dev] MGA2 Installer + Bootloader stage issue: initrd regeneration not happening? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#17348">[ date ]</a> + <a href="thread.html#17348">[ thread ]</a> + <a href="subject.html#17348">[ subject ]</a> + <a href="author.html#17348">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |