glim icon indicating copy to clipboard operation
glim copied to clipboard

`rsync` fails because it cannot change permissions on FAT filesystem

Open spameier opened this issue 3 years ago • 0 comments

$ set -x; ./glim.sh
+ ./glim.sh
Found partition with label 'GLIM' : /dev/sdb1
Found block device where to install GRUB2 : /dev/sdb
Found mount point for filesystem : /run/media/jonas/GLIM
Install for EFI in addition to standard BIOS? (Y/n) y
Ready to install GLIM. Continue? (Y/n) y
Running grub-install --target=i386-pc --boot-directory=/run/media/jonas/GLIM/boot /dev/sdb (with sudo) ...
[sudo] password for jonas: 
Installing for i386-pc platform.
Installation finished. No error reported.
Running grub-install --target=x86_64-efi --efi-directory=/run/media/jonas/GLIM --removable --boot-directory=/run/media/jonas/GLIM/boot /dev/sdb (with sudo) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Running rsync -rpt --delete --exclude=i386-pc --exclude=x86_64-efi --exclude=fonts --exclude=icons/originals ./grub2/ /run/media/jonas/GLIM/boot/grub ...
rsync: [generator] failed to set permissions on "/run/media/jonas/GLIM/boot/grub/.": Operation not permitted (1)
rsync: [generator] failed to set permissions on "/run/media/jonas/GLIM/boot/grub/themes": Operation not permitted (1)
rsync: [generator] failed to set permissions on "/run/media/jonas/GLIM/boot/grub/themes/invader": Operation not permitted (1)
rsync: [generator] failed to set permissions on "/run/media/jonas/GLIM/boot/grub/themes/invader/icons": Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]
ERROR: the rsync copy returned with an error exit status.

I think -p (--perms) should not be specified since this is not allowed on a FAT32 file system.

spameier avatar Mar 02 '22 20:03 spameier