Subversion Repositories livecd

Rev

Rev 402 | Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 402 Rev 410
Line 278... Line 278...
278
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
278
/usr/bin/cp /usr/lib/python2.7/site-packages/blivet/size.py /usr/lib/python2.7/site-packages/blivet/size.py.orig
279
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
279
/usr/bin/sed -i "s#return self.humanReadable()#return self.humanReadable().encode('utf-8')#g" /usr/lib/python2.7/site-packages/blivet/size.py
280
 
280
 
281
EOF
281
EOF
282
 
282
 
283
# Patching livepayload too https://bugzilla.redhat.com/show_bug.cgi?id=1100504
-
 
284
cat > /tmp/livepayload.patch <<EOF
-
 
285
--- /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py.orig
-
 
286
+++ /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py
-
 
287
@@ -152,6 +152,13 @@
-
 
288
             self.pct = 100
-
 
289
         threadMgr.wait(THREAD_LIVE_PROGRESS)
-
 
290
 
-
 
291
+        # Live needs to create the rescue image before bootloader is written
-
 
292
+        for kernel in self.kernelVersionList:
-
 
293
+            log.info("Generating rescue image for %s", kernel)
-
 
294
+            iutil.execInSysroot("new-kernel-pkg",
-
 
295
+                                ["--rpmposttrans", kernel])
-
 
296
+
-
 
297
+
-
 
298
     def postInstall(self):
-
 
299
         """ Perform post-installation tasks. """
-
 
300
         progressQ.send_message(_("Performing post-installation setup tasks"))
-
 
301
@@ -159,12 +166,6 @@
-
 
302
 
-
 
303
         super(LiveImagePayload, self).postInstall()
-
 
304
 
-
 
305
-        # Live needs to create the rescue image before bootloader is written
-
 
306
-        for kernel in self.kernelVersionList:
-
 
307
-            log.info("Generating rescue image for %s", kernel)
-
 
308
-            iutil.execInSysroot("new-kernel-pkg",
-
 
309
-                                ["--rpmposttrans", kernel])
-
 
310
-
-
 
311
         # Make sure the new system has a machine-id, it won't boot without it
-
 
312
         if not os.path.exists(iutil.getSysroot()+"/etc/machine-id"):
-
 
313
             iutil.execInSysroot("systemd-machine-id-setup", [])
-
 
314
 
-
 
315
EOF
-
 
316
 
-
 
317
patch -p0 /usr/lib64/python2.7/site-packages/pyanaconda/packaging/livepayload.py /tmp/livepayload.patch 
-
 
318
 
-
 
319
# bah, hal starts way too late
283
# bah, hal starts way too late
320
cat > /etc/rc.d/init.d/livesys-late << EOF
284
cat > /etc/rc.d/init.d/livesys-late << EOF
321
#!/bin/bash
285
#!/bin/bash
322
#
286
#
323
# live: Late init script for live image
287
# live: Late init script for live image