From 427ab38e9d8144b185e53f29504df36d48277ac4 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 May 2010 15:03:46 -0700 Subject: Preserve file attributes of root files Want to preserve labels and other attributes --- scripts/install/install-image-existing | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index ce0e502d..c243fda6 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -108,7 +108,7 @@ if [ ! -f "$squash_img" ] || [ -z "$boot_files" ]; then fi target_squash=$REL_ROOT/$NEWVER.squashfs cp -p $squash_img $target_squash >&/dev/null -cp -dp $boot_files $REL_ROOT/ >&/dev/null +cp --no-dereference --preserve=all $boot_files $REL_ROOT/ >&/dev/null # mount copied squashfs if ! try_mount "-o loop,ro $target_squash $READ_ROOT"; then -- cgit v1.2.3