@boqsc ,
The error output you refer to is caused by the following code in the file dus-persistent of mkusb.
Code:
# tweak 3 grub.cfg
# search by UUID
partprobe
mount "$part" "$targ1" 2>&1
uid4="$(lsblk -Po name,uuid "${tu}4"|cut -d '"' -f 4)"
if [ "$uid4" != "" ]
then
sed -i "s/set root=(hd0,4)/search --set=root --fs-uuid $uid4/" "$targ1"/boot/grub/grub.cfg
if [ $? -ne 0 ]
then
error="$error - sed: tweak 3 grub.cfg"
result="failed :-("
echo "$result"
fi
fi
It works for me, when run in an up to date installed Lubuntu 18.04 LTS (64-bit) to create Ubuntu 18.10. I used default settings (in mkusb).
The result in the file grub.cfg is
Code:
menuentry "Run Ubuntu - persistent live" {
search --set=root --fs-uuid 2018-10-17-22-44-30-00
set gfxpayload=keep
linux ($root)/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent ---
initrd ($root)/casper/initrd
}
which means that the sed command was successful (and should return 0 on exit).
Please note that mkusb creates a persistent live system that works in most cases also when this sed command fails, but it will be more robust when the sed command succeeds.
Can you find something that is different in your case compared to my case? In what operating system did you install and run mkusb? Version and flavour of Ubuntu? Other possible differences? If you tell me the details I can create such a system and try to reproduce your result (with the error output).
Bookmarks