]> spindle.queued.net Git - xodist/blobdiff - functions.sh
initchroot: sugar workaround can go away now
[xodist] / functions.sh
index 46705f6f3787ba635bcc9ae19af0d61ce2692ec5..4e1e0c98ee12fa41f5057dfef61a31dfe840b70d 100644 (file)
@@ -95,6 +95,7 @@ else
        " \${DN}\\vmlinuz" expand\$ to boot-device
        " \${DN}\\initrd.img" expand\$ to ramdisk
 then
+dcon-unfreeze
 boot
 EOF
 }
@@ -114,3 +115,13 @@ chroot_internal_umounts()
     umount ${root_dir}/dev/pts
     umount ${root_dir}/var/cache/apt/cache
 }
+
+start_logging()
+{
+    logpipe="$1".pipe
+    trap "rm -f $logpipe" 0
+    mknod $logpipe p
+    tee "$1".log <$logpipe &
+    trap "kill $!; rm -f $logpipe" 0
+    exec >$logpipe 2>&1
+}