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

[PATCH] Add support for initrd as livefs_root



Hi.

This patch adds initrd as an option to the live-media parameter. 

If live-media=initrd is set, find_livefs checks if the file $LIVE_MEDIA_PATH/filesystem.squashfs exists and then returns "/", which sets livefs_root to the initrd.

Cheers,
Daniel


From f77c44d76cbbee27a2788b206b4f706f18798481 Mon Sep 17 00:00:00 2001
From: Daniel Lindgren <dali.spam@gmail.com>
Date: Wed, 24 Sep 2014 12:23:16 +0200
Subject: [PATCH] Add support for initrd as livefs_root

---
 components/9990-misc-helpers.sh |    9 +++++++++
 1 fil ändrad, 9 tillägg(+)

diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 2bf2db1..8e1c7b8 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -273,6 +273,15 @@ find_livefs ()
 			done
 			return 1
 			;;
+			
+                initrd)
+                        if [ -e ${LIVE_MEDIA_PATH}/filesystem.squashfs ]
+                        then
+                                echo "/"
+                                return 0
+                        fi
+                        return 1
+                        ;;
 
 		*)
 			if [ ! -z "${LIVE_MEDIA}" ]
-- 
1.7.10.4


Reply to: