<div dir="ltr"><p>Hello! I tried to correct the ubiquity for the normal work on Debian Live. If you are interested, it would be a small correction in diff.gz. This is not the final version, but nevertheless working.</p><p>
--- ubiquity-1.10.3.orig/d-i/source/localechooser/localechooser<br>+++ ubiquity-1.10.3/d-i/source/localechooser/localechooser<br>@@ -115,9 +115,9 @@<br>&nbsp;        done<br>&nbsp;        IFS=&quot;$OLDIFS&quot;<br>&nbsp;<br>-        db_subst $tpl_languagelist CODES &quot;$codes&quot;<br>
-        db_subst $tpl_languagelist NAMES_EN &quot;$names_en&quot;<br>-        db_subst $tpl_languagelist NAMES_BOTH &quot;$names_both&quot;<br>+        db_subst $tpl_languagelist\ CODES\ &quot;$codes&quot;<br>+        db_subst $tpl_languagelist\ NAMES_EN\ &quot;$names_en&quot;<br>
+        db_subst $tpl_languagelist\ NAMES_BOTH\ &quot;$names_both&quot;<br>&nbsp;<br>&nbsp;        echo $level &gt;/var/lib/localechooser/langlevel<br>&nbsp;}<br>--- ubiquity-1.10.3.orig/d-i/source/console-setup/debian/console-setup.postinst<br>+++ ubiquity-1.10.3/d-i/source/console-setup/debian/console-setup.postinst<br>
@@ -95,9 +95,7 @@<br>&nbsp;<br>&nbsp;    . $CONFIGFILE || true<br>&nbsp;<br>-    if [ &quot;$model&quot; = SKIP ]; then<br>-        BOOTTIME_KMAP_MD5=<br>-    elif \<br>+    if \<br>&nbsp;        [ -z &quot;$BOOTTIME_KMAP_MD5&quot; ] \<br>&nbsp;        || [ ! -f &quot;$CONFIGDIR/boottime.kmap.gz&quot; ] \<br>
&nbsp;        || echo &quot;$BOOTTIME_KMAP_MD5  $CONFIGDIR/boottime.kmap.gz&quot; \<br>@@ -143,23 +141,22 @@<br>&nbsp;<br>&nbsp;# In d-i debhelper doesn&#39;t use /etc/init.d scripts :-)<br>&nbsp;if [ -f /usr/share/console-setup-mini/console-setup.config ]; then<br>
-    if [ -d /lib/debian-installer ]; then<br>-        setupcon --force --save<br>-    else<br>-        # setting the font corrupts X<br>-        setupcon --save-only<br>-        setupcon --force -k<br>-        cat &gt;&amp;2 &lt;&lt;EOF<br>-Your console font configuration will be updated the next time your system<br>
-boots. If you want to update it now, run &#39;setupcon&#39; from a virtual console.<br>-EOF<br>-    fi<br>+    setupcon --force --save<br>&nbsp;fi<br>&nbsp;<br>-#DEBHELPER#<br>-<br>-if type update-initramfs &gt;/dev/null 2&gt;&amp;1; then<br>
-    update-initramfs -u<br>+# Automatically added by dh_installinit<br>+if [ -x &quot;/etc/init.d/keyboard-setup&quot; ]; then<br>+        update-rc.d keyboard-setup start 06 S . &gt;/dev/null || exit $?<br>+fi<br>+# End automatically added section<br>
+# Automatically added by dh_installinit<br>+if [ -x &quot;/etc/init.d/console-setup&quot; ]; then<br>+        update-rc.d console-setup start 49 S . &gt;/dev/null<br>+        if [ -x &quot;`which invoke-rc.d 2&gt;/dev/null`&quot; ]; then<br>
+                invoke-rc.d console-setup start || exit $?<br>+        else<br>+                /etc/init.d/console-setup start || exit $?<br>+        fi<br>&nbsp;fi<br>+# End automatically added section<br>&nbsp;<br>-exit 0<br>--- ubiquity-1.10.3.orig/scripts/install.py<br>
+++ ubiquity-1.10.3/scripts/install.py<br>@@ -762,10 +762,11 @@<br>&nbsp;                         &#39;/var/log/installer/version&#39;, &#39;/var/log/casper.log&#39;):<br>&nbsp;            target_log_file = os.path.join(target_dir,<br>
&nbsp;                                           os.path.basename(log_file))<br>-            if not misc.execute(&#39;cp&#39;, &#39;-a&#39;, log_file, target_log_file):<br>-                syslog.syslog(syslog.LOG_ERR,<br>-                              &#39;Failed to copy installation log file&#39;)<br>
-            os.chmod(target_log_file, stat.S_IRUSR | stat.S_IWUSR)<br>+            if os.path.isfile(target_log_file):<br>+                if not misc.execute(&#39;cp&#39;, &#39;-a&#39;, log_file, target_log_file):<br>+                    syslog.syslog(syslog.LOG_ERR,<br>
+                                  &#39;Failed to copy installation log file&#39;)<br>+                os.chmod(target_log_file, stat.S_IRUSR | stat.S_IWUSR)<br>&nbsp;        try:<br>&nbsp;            status = open(os.path.join(self.target, &#39;var/lib/dpkg/status&#39;))<br>
&nbsp;            status_gz = gzip.open(os.path.join(target_dir,<br>@@ -835,7 +836,10 @@<br>&nbsp;            mountpoint = &#39;/var/lib/ubiquity/%s&#39; % sysloop<br>&nbsp;        if not os.path.isdir(mountpoint):<br>&nbsp;            os.mkdir(mountpoint)<br>
-        misc.execute(&#39;mount&#39;, dev, mountpoint)<br>+        if not misc.execute(&#39;mount&#39;, dev, mountpoint)<br>+            misc.execute(&#39;losetup&#39;, &#39;-d&#39;, dev)<br>+            misc.execute(&#39;mount&#39;, &#39;-o&#39;, &#39;loop&#39;, fsfile, mountpoint)<br>
+            dev = &#39;unused&#39;<br>&nbsp;<br>&nbsp;        return (dev, mountpoint)<br>&nbsp;<br>@@ -866,7 +870,8 @@<br>&nbsp;            # Manual detection on non-unionfs systems<br>&nbsp;            fsfiles = [&#39;/cdrom/casper/filesystem.cloop&#39;,<br>
&nbsp;                       &#39;/cdrom/casper/filesystem.squashfs&#39;,<br>-                       &#39;/cdrom/META/META.squashfs&#39;]<br>+                       &#39;/cdrom/META/META.squashfs&#39;,<br>+                       &#39;/live/image/live/filesystem.squashfs&#39;]<br>
&nbsp;<br>&nbsp;            for fsfile in fsfiles:<br>&nbsp;                if fsfile != &#39;&#39; and os.path.isfile(fsfile):<br>@@ -916,10 +921,10 @@<br>&nbsp;            if not misc.execute(&#39;umount&#39;, mountpoint):<br>&nbsp;                raise InstallStepError(&quot;Failed to unmount %s&quot; % mountpoint)<br>
&nbsp;        for dev in devs:<br>-            if dev != &#39;&#39; and not misc.execute(&#39;losetup&#39;, &#39;-d&#39;, dev):<br>-                raise InstallStepError(<br>-                    &quot;Failed to detach loopback device %s&quot; % dev)<br>
-<br>+            if dev != &#39;unused&#39;:<br>+                if dev != &#39;&#39; and not misc.execute(&#39;losetup&#39;, &#39;-d&#39;, dev):<br>+                    raise InstallStepError(<br>+                        &quot;Failed to detach loopback device %s&quot; % dev)<br>
&nbsp;<br>&nbsp;    def chroot_setup(self, x11=False):<br>&nbsp;        &quot;&quot;&quot;Set up /target for safe package management operations.&quot;&quot;&quot;<br>@@ -1364,7 +1369,10 @@<br>&nbsp;                    &#39;usplash&#39;,<br>&nbsp;                    &#39;popularity-contest&#39;,<br>
&nbsp;                    &#39;libpaper1&#39;,<br>-                    &#39;ssl-cert&#39;]<br>+                    &#39;ssl-cert&#39;,<br>+                    &#39;splashy&#39;,<br>+                    &#39;xserver-xorg&#39;,<br>
+                    &#39;initramfs-tools&#39;]<br>&nbsp;<br>&nbsp;        try:<br>&nbsp;            for package in packages:<br><br><br clear="all"></p><br>-- <br>С Уважением, Виталий<br><br>Блог: <a href="http://vitaljkapblog.livejournal.com/">http://vitaljkapblog.livejournal.com/</a><br>
Lastfm: <a href="http://www.lastfm.ru/user/kafik-fafik/">http://www.lastfm.ru/user/kafik-fafik/</a><br>ICQ: 578-126<br>E-Mail: <a href="mailto:v31337@gmail.com">v31337@gmail.com</a><br>
</div>