Fri Jan 27, 2017 10:48 pm
# begin copying (or uncompressing)
mkdir "${copyto}"
# begin copying (or uncompressing)
mkdir -p "${copyto}/${LIVE_MEDIA_PATH}"
Sat Jan 28, 2017 12:15 pm
dzz wrote:miyolinux, it's fine, no can of worms! Some of us actually enjoy hacking this stuff! Keeps me out of the pub. You can help test if you want.
Sat Jan 28, 2017 1:08 pm
Sat Jan 28, 2017 3:36 pm
fsmithred wrote:Messing it up is how you figure out what it really does.
Sat Jan 28, 2017 4:03 pm
fsmithred wrote:Messing it up is how you figure out what it really does.
Sat Jan 28, 2017 11:46 pm
if [ -z "${MODULETORAM}" ]
then
# size the squashfs, not the entire partition
size=$(fs_size "" ${copyfrom}/${LIVE_MEDIA_PATH}/filesystem.squashfs "used")
Mon Jan 30, 2017 2:01 am
Was there a reason you re-ordered that section?
Mon Jan 30, 2017 10:07 pm
Tue Jan 31, 2017 2:51 am
Tue Jan 31, 2017 12:50 pm
if [ -x /bin/rsync ]
then
echo " * Copying squashfs to RAM" 1>/dev/console
mkdir -p "${copyto}/${LIVE_MEDIA_PATH}"
rsync -a --progress ${copyfrom}/${LIVE_MEDIA_PATH}/*.squashfs ${copyto}/${LIVE_MEDIA_PATH}/ 1>/dev/console
if [ -d ${copyfrom}/${LIVE_MEDIA_PATH}/hooks
then
rsync -a --progress ${copyfrom}/${LIVE_MEDIA_PATH}/hooks ${copyto}/${LIVE_MEDIA_PATH}/ 1>/dev/console
fi
else
mkdir -p ${copyto}/${LIVE_MEDIA_PATH}
cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/* ${copyto}/${LIVE_MEDIA_PATH}
if [ -d ${copyfrom}/${LIVE_MEDIA_PATH}/hooks
then
cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/hooks ${copyto}/${LIVE_MEDIA_PATH}/
fi
if [ -e ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ]
then
cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ${copyto}
fi
fi