mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH] dmsquash-live: use 'rootfs.img' for rootfs image name
@ 2011-03-11 21:29 Will Woods
       [not found] ` <1299878949-27941-1-git-send-email-wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Will Woods @ 2011-03-11 21:29 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Every image gets handled the same way regardless of filesystem, so
let's use a filesystem-neutral name (rather than adding new
lines for every fstype anyone might want to use).
---
 modules.d/90dmsquash-live/dmsquash-live-root |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
index 06893d5..16262b6 100755
--- a/modules.d/90dmsquash-live/dmsquash-live-root
+++ b/modules.d/90dmsquash-live/dmsquash-live-root
@@ -48,7 +48,7 @@ if [ -f $livedev ]; then
     # no mount needed - we've already got the LiveOS image in initramfs
     case $livedev in
         *squashfs.img) SQUASHED=$livedev ;;
-        *ext3fs.img|*btrfs.img) FSIMG=$livedev ;;
+        *ext3fs.img|*rootfs.img) FSIMG=$livedev ;;
     esac
 else
     mount -n -t $fstype -o $liverw $livedev /dev/.run/initramfs/live
@@ -135,8 +135,8 @@ fi
 # we might have an embedded fs image to use as rootfs (uncompressed live)
 if [ -e /dev/.run/initramfs/live/${live_dir}/ext3fs.img ]; then
     FSIMG="/dev/.run/initramfs/live/${live_dir}/ext3fs.img"
-elif [ -e /dev/.run/initramfs/live/${live_dir}/btrfs.img ]; then
-    FSIMG="/dev/.run/initramfs/live/${live_dir}/btrfs.img"
+elif [ -e /dev/.run/initramfs/live/${live_dir}/rootfs.img ]; then
+    FSIMG="/dev/.run/initramfs/live/${live_dir}/rootfs.img"
 fi
 
 if [ -n "$FSIMG" ] ; then
@@ -170,8 +170,8 @@ if [ -e "$SQUASHED" ] ; then
     BASE_LOOPDEV=$( losetup -f )
     if [ -f /squashfs/LiveOS/ext3fs.img ]; then
         losetup -r $BASE_LOOPDEV /squashfs/LiveOS/ext3fs.img
-    elif [ -f /squashfs/LiveOS/btrfs.img ]; then
-        losetup -r $BASE_LOOPDEV /squashfs/LiveOS/btrfs.img
+    elif [ -f /squashfs/LiveOS/rootfs.img ]; then
+        losetup -r $BASE_LOOPDEV /squashfs/LiveOS/rootfs.img
     fi
 
     umount -l /squashfs
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dmsquash-live: use 'rootfs.img' for rootfs image name
       [not found] ` <1299878949-27941-1-git-send-email-wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2011-03-14 15:31   ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2011-03-14 15:31 UTC (permalink / raw)
  To: Will Woods; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

Am 11.03.2011 22:29, schrieb Will Woods:
> Every image gets handled the same way regardless of filesystem, so
> let's use a filesystem-neutral name (rather than adding new
> lines for every fstype anyone might want to use).
> ---
>  modules.d/90dmsquash-live/dmsquash-live-root |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
> index 06893d5..16262b6 100755
> --- a/modules.d/90dmsquash-live/dmsquash-live-root
> +++ b/modules.d/90dmsquash-live/dmsquash-live-root
> @@ -48,7 +48,7 @@ if [ -f $livedev ]; then
>      # no mount needed - we've already got the LiveOS image in initramfs
>      case $livedev in
>          *squashfs.img) SQUASHED=$livedev ;;
> -        *ext3fs.img|*btrfs.img) FSIMG=$livedev ;;
> +        *ext3fs.img|*rootfs.img) FSIMG=$livedev ;;
>      esac
>  else
>      mount -n -t $fstype -o $liverw $livedev /dev/.run/initramfs/live
> @@ -135,8 +135,8 @@ fi
>  # we might have an embedded fs image to use as rootfs (uncompressed live)
>  if [ -e /dev/.run/initramfs/live/${live_dir}/ext3fs.img ]; then
>      FSIMG="/dev/.run/initramfs/live/${live_dir}/ext3fs.img"
> -elif [ -e /dev/.run/initramfs/live/${live_dir}/btrfs.img ]; then
> -    FSIMG="/dev/.run/initramfs/live/${live_dir}/btrfs.img"
> +elif [ -e /dev/.run/initramfs/live/${live_dir}/rootfs.img ]; then
> +    FSIMG="/dev/.run/initramfs/live/${live_dir}/rootfs.img"
>  fi
>  
>  if [ -n "$FSIMG" ] ; then
> @@ -170,8 +170,8 @@ if [ -e "$SQUASHED" ] ; then
>      BASE_LOOPDEV=$( losetup -f )
>      if [ -f /squashfs/LiveOS/ext3fs.img ]; then
>          losetup -r $BASE_LOOPDEV /squashfs/LiveOS/ext3fs.img
> -    elif [ -f /squashfs/LiveOS/btrfs.img ]; then
> -        losetup -r $BASE_LOOPDEV /squashfs/LiveOS/btrfs.img
> +    elif [ -f /squashfs/LiveOS/rootfs.img ]; then
> +        losetup -r $BASE_LOOPDEV /squashfs/LiveOS/rootfs.img
>      fi
>  
>      umount -l /squashfs

pushed

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-14 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 21:29 [PATCH] dmsquash-live: use 'rootfs.img' for rootfs image name Will Woods
     [not found] ` <1299878949-27941-1-git-send-email-wwoods-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-03-14 15:31   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox