[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516914: live-initramfs: should check if /var/log is writable before copying



Package: live-initramfs                                                                 
Severity: wishlist                                                                      
Tags: patch
Justification: cosmetical

The attached patch just adds a check before trying to copy live.log to the 
newly mounted root filesystem. When using the "exposedroot skipunion" options, 
then /var/log may not be writable at this time, resulting in an error message 
during bootup. The patch fixed this.

-- System Information:
Debian Release: 5.0   
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 
'stable')
Architecture: i386 (i686)                                                             

Kernel: Linux 2.6.27-12-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash                            

Versions of packages live-initramfs depends on:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and 
embed
ii  file                          4.26-2     Determines file type using "magic"
pn  initramfs-tools               <none>     (no description available)
ii  sudo                          1.6.9p17-2 Provide limited super user 
privile
pn  udev                          <none>     (no description available)
pn  user-setup                    <none>     (no description available)

Versions of packages live-initramfs recommends:
pn  eject                         <none>     (no description available)
ii  uuid-runtime                  1.41.3-1   universally unique id library
ii  wget                          1.11.4-2   retrieves files from the web

Versions of packages live-initramfs suggests:
pn  curlftpfs                     <none>     (no description available)
pn  genext2fs                     <none>     (no description available)
pn  httpfs2                       <none>     (no description available)
pn  loop-aes-utils                <none>     (no description available)
pn  mtd-tools                     <none>     (no description available)
ii  squashfs-tools                1:3.3-7    Tool to create and append to 
squas
--- usr/share/initramfs-tools/scripts/live~     2009-02-08 15:09:09.000000000 +0100
+++ usr/share/initramfs-tools/scripts/live      2009-02-24 10:41:29.000000000 +0100
@@ -1585,5 +1585,5 @@
        exec 1>&6 6>&-
        exec 2>&7 7>&-
        kill ${tailpid}
-       cp live.log "${rootmnt}/var/log/"
+       [ -w "${rootmnt}/var/log/" ] && cp live.log "${rootmnt}/var/log/" 2>/dev/null
 }

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: