Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the files copied to the chroot etc are executable #14

Open
agroszer opened this issue Oct 7, 2014 · 7 comments
Open

the files copied to the chroot etc are executable #14

agroszer opened this issue Oct 7, 2014 · 7 comments

Comments

@agroszer
Copy link

agroszer commented Oct 7, 2014

everything under

ubuntu-chromebook-installer/profiles/default/system/etc
ubuntu-chromebook-installer/profiles/devices/acer-c720/system

and also what the script creates, like
/etc/hosts
/etc/resolv.conf
/etc/fstab

@agroszer
Copy link
Author

agroszer commented Oct 7, 2014

usb sticks and sdcards most probably will have vfat, which will have executable set...

@eyecreate
Copy link
Owner

Are you saying every file is marked as executable?

@agroszer
Copy link
Author

agroszer commented Oct 8, 2014

yes whatever gets copied from the USB stick definitely

I think also the ones you create in $tmp_dir, and copy later to the chroot, just because $tmp_dir is also on the USB stick which is vfat

@eyecreate
Copy link
Owner

Hm, might be how the transition from fat to ext is handled. Can you get me the list of file permissions for the files once they are in the chroot?

@agroszer
Copy link
Author

agroszer commented Oct 9, 2014

Sorry, I did the install by "manually" doing the iso->tar.gz and using a previous version of your script.
Also reset the executable perms on the various files.
All in all I don't want to go back because I don't really have the time.

@agroszer
Copy link
Author

agroszer commented Oct 9, 2014

okay, stealing some logs from https://gist.github.com/mpmc/5668e9f23fa36bd81fcb

2014-10-09T11:08:25 COMMAND sudo cp -Rvu ./profiles//default//system//. /tmp/urfs/
2014-10-09T11:08:26 COMMAND output: ‘./profiles//default//system//./etc/environment’ -> ‘/tmp/urfs/./etc/environment’
‘./profiles//default//system//./etc/cron.daily/99_fstrim’ -> ‘/tmp/urfs/./etc/cron.daily/99_fstrim’
‘./profiles//default//system//./etc/skel/.directory’ -> ‘/tmp/urfs/./etc/skel/.directory’
‘./profiles//default//system//./etc/skel/.xbindkeysrc’ -> ‘/tmp/urfs/./etc/skel/.xbindkeysrc’
2014-10-09T11:08:26 INFO Copying device system files to /tmp/urfs/...
2014-10-09T11:08:26 COMMAND sudo cp -Rvu ./profiles//devices//acer-c720//system//. /tmp/urfs/
2014-10-09T11:08:27 COMMAND output: ‘./profiles//devices//acer-c720//system//./etc/rc.local’ -> ‘/tmp/urfs/./etc/rc.local’
‘./profiles//devices//acer-c720//system//./etc/X11/xorg.conf’ -> ‘/tmp/urfs/./etc/X11/xorg.conf’
‘./profiles//devices//acer-c720//system//./etc/X11/xorg.conf.d’ -> ‘/tmp/urfs/./etc/X11/xorg.conf.d’
‘./profiles//devices//acer-c720//system//./etc/X11/xorg.conf.d/50-synaptics.conf’ -> ‘/tmp/urfs/./etc/X11/xorg.conf.d/50-synaptics.conf’
‘./profiles//devices//acer-c720//system//./etc/default/grub’ -> ‘/tmp/urfs/./etc/default/grub’
‘./profiles//devices//acer-c720//system//./etc/modprobe.d/ath9k.conf’ -> ‘/tmp/urfs/./etc/modprobe.d/ath9k.conf’
‘./profiles//devices//acer-c720//system//./etc/modprobe.d/snd-hda-intel.conf’ -> ‘/tmp/urfs/./etc/modprobe.d/snd-hda-intel.conf’
‘./profiles//devices//acer-c720//system//./etc/pm/sleep.d/05_sound’ -> ‘/tmp/urfs/./etc/pm/sleep.d/05_sound’

those files all get the executable perm

An idea would be to copy them first to e.g. /tmp/somefolder set there -x and copy after that to the chroot

@eyecreate
Copy link
Owner

I'll look into getting this dealt with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants