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

test live-initramfs_1.157.4-2



hi.

Sorry for not knowing English. Using a translator.

I tried to mount try to squeeze an image debian-live usb-hdd persistent modeBut he stops to find devices not mountable, as hda, sdb, hdc, hdd, etc ... or extended partitions.

In live mode gonna be all right.

I made some modifications to the live-helpers. And it has mounted partitions so persistent right.

But I wish you could confirm where the problem might be.

These are the changes:

--- prueba/usr/share/initramfs-tools/scripts/live-helpers    2009-11-22 12:19:02.000000000 +0000
+++ live-helpers    2010-01-21 23:08:19.000000000 +0000
@@ -81,7 +81,7 @@
     then
         /lib/udev/vol_id -t ${1} 2>/dev/null
     else
-        eval $(blkid -o udev "${1}")
+        eval $(blkid -c /etc/blkid.tab -o udev "${1}")
         if [ -n "$ID_FS_TYPE" ]
         then
             echo "${ID_FS_TYPE}"
@@ -278,16 +278,16 @@
     then
         if [ "${opts}" != "ro" ]
         then
-            mount -o remount,"${opts}" "${dev}" "${old_mountp}" || panic "Remounting ${dev} ${opts} on ${old_mountp} failed"
+            mount -o remount,rw "${dev}" "${old_mountp}" || log_begin_msg "Remounting ${dev} ${opts} on ${old_mountp} failed"
         fi
 
-        mount -o bind "${old_mountp}" "${mountp}" || panic "Cannot bind-mount ${old_mountp} on ${mountp}"
+        mount -o bind "${old_mountp}" "${mountp}" || log_begin_msg "Cannot bind-mount ${old_mountp} on ${mountp}"
     else
         if [ -z "${fstype}" ]
         then
             fstype=$(get_fstype "${dev}")
         fi
-        mount -t "${fstype}" -o "${opts}" "${dev}" "${mountp}" || panic "Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}"
+        mount -t "${fstype}" -o rw "${dev}" "${mountp}" || log_begin_msg "Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}"
     fi
 }
 
@@ -358,7 +358,7 @@
                     return 0
                 fi
             else
-                eval $(blkid -o udev "${devname}")
+                eval $(blkid -c /etc/blkid.tab -o udev "${devname}")
                 if [ "$ID_FS_LABEL" = "${pers_label}" ]
                 then
                     echo "${devname}"
@@ -376,10 +376,6 @@
             case "$(get_fstype ${devname})" in
                 vfat|ext2|ext3|ext4|jffs2)
                     mkdir -p "${cow_backing}"
-                    if ! try_mount "${devname}" "${cow_backing}" "rw"
-                    then
-                        break
-                    fi
 
                     if [ -f "${pers_fpath}" ]
                     then

------------------------------------------------


Thanks!


Greetings.


--
José A. González

Siempre GNU Linux.

Reply to: