Fri Jan 27, 2017 12:46 pm
Fri Jan 27, 2017 1:35 pm
tree '/media/sdb1/refracta8'
/media/sdb1/refracta8
├── bookmarks-2016-12-10.json
├── filesystem.squashfs
├── hooks
│ ├── 01hook1.sh
│ ├── 02hook2.sh
│ └── 03wireless.sh
├── hookscript
├── initrd.custom3.gz
├── initrd.custom4.gz
├── initrd.img
├── initrd.test1.img
├── persistence
├── refracta8_xfce_i386-20161014_1432.iso
└── vmlinuz
1 directory, 13 files
label refracta8-32 (from squash)
menu refracta8-32 (from squash)
kernel /refracta8/vmlinuz
append initrd=/refracta8/initrd.custom4.gz live-media-path=/refracta8/ boot=live union=aufs lang=en_GB swap toram debug
Fri Jan 27, 2017 1:57 pm
/media/pnytest/r8_amd64/
├── boot
│ └── grub
├── efi
│ └── boot
├── isolinux
├── live
│ ├── filesystem.squashfs
│ ├── initrd.img
│ ├── initrd.toram
│ ├── memtest
│ └── vmlinuz
└── pkglist_refracta8_xfce_amd64-20161013_1314
menuentry "r8_amd64 toram" {
set gfxpayload=keep
linux /r8_amd64/live/vmlinuz boot=live union=aufs toram live-media-path=/r8_amd64/live
initrd /r8_amd64/live/initrd.toram
}
Fri Jan 27, 2017 2:55 pm
Fri Jan 27, 2017 3:06 pm
Fri Jan 27, 2017 5:18 pm
mkdir -p "${copyto}/${LIVE_MEDIA_PATH}"
Fri Jan 27, 2017 5:46 pm
Fri Jan 27, 2017 6:19 pm
Fri Jan 27, 2017 7:35 pm
dzz wrote:rsync puked because the target directory ${copyto}/${LIVE_MEDIA_PATH} didn't exist at that point.
Adding this line to the patched script, (just before line 112, the rsync command) solved it:
- Code:
mkdir -p "${copyto}/${LIVE_MEDIA_PATH}"
else
if [ -x /bin/rsync ]
then
echo " * Copying squashfs to RAM" 1>/dev/console
mkdir -p ${copyto}/${LIVE_MEDIA_PATH} # <--- added this line
rsync -a --progress ${copyfrom}/${LIVE_MEDIA_PATH}/*.squashfs ${copyto}/${LIVE_MEDIA_PATH}/ 1>/dev/console # "cp -a" from busybox also copies hidden files
else
[b]mkdir -p ${copyto}/${LIVE_MEDIA_PATH}[/b]
cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/* ${copyto}/${LIVE_MEDIA_PATH}
if [ -e ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ]
then
cp -a ${copyfrom}/${LIVE_MEDIA_PATH}/.disk ${copyto}
fi
fi
Fri Jan 27, 2017 10:00 pm