amanharitsh123 / sugarizer-school-box

Sugarizer School Box GSoC '18
Apache License 2.0
2 stars 6 forks source link

FirstBoot Actions Not Working #5

Closed amanharitsh123 closed 6 years ago

amanharitsh123 commented 6 years ago

script.sh in custom_scripts doesnt work at the firstboot.

quozl commented 6 years ago

In file sugarizer.sh you prefix almost everythinkg with ${R} (the root filesystem), but not your write to rc.firstboot; you may find you have added a line to your host system instead.

https://github.com/amanharitsh123/sugarizer-school-box/blob/dev/custom_scripts/sugarizer.sh#L5

amanharitsh123 commented 6 years ago

${R} represents the root partition of the chroot system and {ETC_DIR} is /etc/ https://github.com/drtyhlpr/rpi23-gen-image/blob/master/rpi23-gen-image.sh#L92 I have confirmed that https://github.com/amanharitsh123/sugarizer-school-box/blob/dev/custom_scripts/sugarizer.sh#L5 places a line in /etc/rc.firstboot in the rpi image. But I dont know why the script.sh is not working.

amanharitsh123 commented 6 years ago

@quozl @rishabh42 Please Review .