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

Bug#348147: Allow subscripts to alter ROOT



Hi maks,

> diff -Nur initramfs-tools-0.59b.orig/scripts/functions initramfs-tools-0.59b/scripts/functions
> --- initramfs-tools-0.59b.orig/scripts/functions	2006-03-26 11:59:15.000000000 +0200
> +++ initramfs-tools-0.59b/scripts/functions	2006-04-08 00:43:00.000000000 +0200
> @@ -161,6 +161,13 @@
>  {
>  	for cs_x in ${runlist}; do
>  		${initdir}/${cs_x}
> +		# The subscript may create a file to be sourced by the main script
> +		# e.g. to change ROOT or other variables globally
> +		# check if such a file exists, source it and remove it
> +		if [ -e /dev/.initramfs/source.me ]; then
> +			. /dev/.initramfs/source.me
> +			rm -f /dev/.initramfs/source.me
> +		fi
>  	done
>  }
>  

I just want to add that I'd find something comparable to source.me
immensely useful. initrd-tools used to have something comparable to
it which was used sensibly by other scripts. Having something like
it in initramfs-tools would make it possible for me to work on root-
on-loop-AES. So, please take my +1 vote for this feature.

cheers,
Max



Reply to: