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

Bug#552084: [initramfs-tools] generated scripts break with btrfs



severity 552084 normal
stop

On Fri, Oct 23, 2009 at 05:20:00AM -0400, daniel wrote:
> Package: initramfs-tools
> 
> Version: 0.93.4
> 
> Severity: critical

stop it, please reread the severity description.
 
> --- Please enter the report below this line. ---
> 
> with btrfs the generated scripts for finding and mounting root are not
> working for me.
> 
> My setup is luks > lvm2 > btrfs.

right so shooting oneself in the foot with experimental fs,
should make one more humble and patches to fix aboves are also always
welcome.
 
 
>  More specifically the way of the scripts to find out the filesystem type is
> leading to an error in /scripts/local-top/cryptroot in this part:
> 
> 
>  if [ -z "$FSTYPE" ] || [ "$FSTYPE" = "unknown" ]; then
> 
> message "cryptsetup: unknown fstype, bad password or options?"
> 
> udev_settle
> 
> $cryptremove
> 
> continue
> 
> fi
> 
> 
> And also a more critical error in /scripts/local at the mount argument:
> 
> 
>  mount ${roflag} -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
> 
> 
> 
>  I did a quick hack and deleted lines 4-5 of the first function and changed
> ${FSTYPE} to btrs in the mount command and this fixed the issues for me.
> 
> it seems that fstype doesn't know btrfs.

oooh, wooow news at 11

boot with rootfstype=brtfs
and be sure to add it to your initramfs
echo "brtfs" >> /etc/i-t/modules



Reply to: