From 00a83a5f57d01a72f83a76c17f3e38d3ae6bdb29 Mon Sep 17 00:00:00 2001 From: Georgi Georgiev Date: Wed, 18 Dec 2013 18:23:13 +0900 Subject: [PATCH] Also detect "fakeroot" --- gen_initramfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 1cd1acc..3278629 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1001,7 +1001,7 @@ create_initramfs() { append_data 'overlay' fi - if [[ $(id -u) == 0 ]]; then + if [[ $(id -u) == 0 && -z ${FAKED_MODE:-} ]]; then # keep this at the very end, generates /etc/ld.so.conf* and cache append_data 'ld_so_conf' fi