Re: [PATCH 6/6] mkinitrd-dracut.sh: Build host images for default_kernel_images and -i/-k paths

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

 



On 09/27/2013 08:19 PM, Thomas Renninger wrote:
> default_kernel_images and -i/-k paths are new (SuSE) code paths and
> would have resulted in usage errors before.
> 
> There we want to build host only images for faster building and
> smaller images.
> Also force creation (overriding) of initrd images in these code paths.
> 
> Signed-off-by: Thomas Renninger <trenn@xxxxxxx>
> ---
>  mkinitrd-dracut.sh |   14 +++++++++++---
>  1 files changed, 11 insertions(+), 3 deletions(-)
> 
> diff --git a/mkinitrd-dracut.sh b/mkinitrd-dracut.sh
> index f7b53f1..a1519ea 100755
> --- a/mkinitrd-dracut.sh
> +++ b/mkinitrd-dracut.sh
> @@ -3,6 +3,8 @@ kver=$(uname -r)
>  
>  boot_dir="/boot"
>  quiet=0
> +host_only=0
> +force=0
>  
>  error() { echo "$@" >&2; }
>  
> @@ -104,7 +106,8 @@ default_kernel_images() {
>      for initrd_image in $initrd_images;do
>  	targets="$targets $initrd_image"
>      done
> -
> +    host_only=1
> +    force=1
>  }
>  
>  while (($# > 0)); do
> @@ -119,8 +122,8 @@ while (($# > 0)); do
>          --version)
>              echo "mkinitrd: dracut compatibility wrapper"
>              exit 0;;
> -        -v|--verbose) dracut_args="${dracut_args} -v";;
> -        -f|--force) dracut_args="${dracut_args} -f";;
> +        -v|--verbose) dracut_args="${dracut_args} -v --keep";;

do you really want to keep the entire files in /var/tmp/<tmpdir>  for --verbose?

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux