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

Re: test live-initramfs_1.157.4-2



joseangon wrote:
> But he stops to find devices not mountable, as hda, sdb, hdc, hdd,
> etc ... or extended partitions.

as told you several times, live-initramfs just *does* *not* *care* about
extended partitions, as they have no filesystem and thus are not looped
over.

in order to help you with your problem (which i guess is the well-known
#565456), you need to give the full partition list, including the used
filesystems.

> -        eval $(blkid -o udev "${1}")
> +        eval $(blkid -c /etc/blkid.tab -o udev "${1}")

why this?

> -            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"

this is wrong, rw is included in $opts here.

> -        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}"

this looks wrong too, to avoid panic you have to fix it earlier already,
not here. if you cannot bind mount, then there's something wrong.

> -        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}"

same as above with $opts.

> -                eval $(blkid -o udev "${devname}")
> +                eval $(blkid -c /etc/blkid.tab -o udev "${devname}")

why?

> -                    if ! try_mount "${devname}" "${cow_backing}" "rw"
> -                    then
> -                        break
> -                    fi

certainly too intrusive.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/


Reply to: