diff options
author | Koen Kooi <koen@openembedded.org> | 2009-06-17 19:52:13 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-06-17 19:52:13 +0200 |
commit | da7c60d75e6cfdaa3e9c14b6ab52ae7262d37b3c (patch) | |
tree | e0223272329ee941c1a111ce93ace7b26a1d7c3b | |
parent | fb03df419a2bbea318b00655957d4f9e4b49c4ab (diff) | |
parent | 4a39c2f6fa894959419ac4a097ac97530c335726 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
-rw-r--r-- | classes/image.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index f0cc3b3a88..0d798fa7db 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -17,6 +17,9 @@ IMAGE_INITSCRIPTS ?= "initscripts" # IMAGE_LOGIN_MANAGER ?= "tinylogin" +IMAGE_KEEPROOTFS ?= "" +IMAGE_KEEPROOTFS[doc] = "Set to non-empty to keep ${IMAGE_ROOTFS} around after image creation." + IMAGE_BOOT ?= "${IMAGE_INITSCRIPTS} \ ${IMAGE_DEV_MANAGER} \ ${IMAGE_INIT_MANAGER} \ @@ -133,6 +136,7 @@ fakeroot do_rootfs () { ${IMAGE_POSTPROCESS_COMMAND} ${MACHINE_POSTPROCESS_COMMAND} + ${@['rm -rf ${IMAGE_ROOTFS}', ''][bool(d.getVar("IMAGE_KEEPROOTFS", 1))]} } do_deploy_to[nostamp] = "1" |