#531 SoaS: use -N for dracut regeneration to ensure generic initrd
Merged 4 years ago by mohanboddu. Opened 4 years ago by pbrobinson.
pbrobinson/fedora-kickstarts soas-fixes  into  master

file modified
+7 -7
@@ -89,20 +89,20 @@ 

  

  %post

  

+ # Get proper release naming in the control panel

+ cat >> /boot/olpc_build << EOF

+ Sugar on a Stick

+ EOF

+ cat /etc/fedora-release >> /boot/olpc_build

+ 

  # Rebuild initrd for Sugar boot screen

  KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')

  /usr/sbin/plymouth-set-default-theme sugar

- dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION

+ dracut -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION

  

  # Note that running rpm recreates the rpm db files which aren't needed or wanted

  rm -f /var/lib/rpm/__db*

  

- # Get proper release naming in the control panel

- cat >> /boot/olpc_build << EOF

- Sugar on a Stick

- EOF

- cat /etc/fedora-release >> /boot/olpc_build

- 

  # Add our activities to the favorites

  cat > /usr/share/sugar/data/activities.defaults << EOF

  org.laptop.WebActivity

Minor other ordering and cleanup. Should fix issues for having host
specific initrd due to having already removed dracut-config-generic.

Pull-Request has been merged by mohanboddu

4 years ago
Metadata