From f31619dc433d8e955cfe9c7abb6bcddb337e43cd Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 1 Feb 2016 06:46:10 -0500 Subject: Label disk on format and create persistence.conf file to get live-boot to set the correct persistence. --- scripts/install/install-get-partition | 2 +- scripts/install/install-image-new | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/install') diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition index eee0dc73..b238f787 100755 --- a/scripts/install/install-get-partition +++ b/scripts/install/install-get-partition @@ -652,7 +652,7 @@ make_filesystem () { lecho "Creating filesystem on /dev/$ldrive..." progress_indicator start - output=$(mkfs -t $ROOT_FSTYPE /dev/$ldrive 2>&1) + output=$(mkfs -L persistence -t $ROOT_FSTYPE /dev/$ldrive 2>&1) status=$? if [ "$status" != 0 ]; then echo -e "Error: couldn't create the root filesystem.\nSee $INSTALL_LOG for further details.\nExiting..." diff --git a/scripts/install/install-image-new b/scripts/install/install-image-new index 81ac45e9..32c5f3e4 100755 --- a/scripts/install/install-image-new +++ b/scripts/install/install-image-new @@ -90,6 +90,9 @@ cp -p $squash_img $target_squash echo Copying kernel and initrd images... cp -dp $boot_files $WRITE_ROOT/boot/$image_name/ +# create persistence.conf file +echo "/ union" > $WRITE_ROOT/persistence.conf + # set up union root for postinst mkdir -p $INST_ROOT $READ_ROOT if ! try_mount "-o loop,ro -t squashfs $target_squash $READ_ROOT"; then -- cgit v1.2.3