Line 423: |
Line 423: |
| ::%post command are done in ''cheroot'' (the commands are only run against the new file system created for the live CD) | | ::%post command are done in ''cheroot'' (the commands are only run against the new file system created for the live CD) |
| :'''EXAMPLE''' | | :'''EXAMPLE''' |
− | ::edit the boot parameters
| + | *edit the boot parameters |
| :'''delete "quiet" and "rhgb" ''' | | :'''delete "quiet" and "rhgb" ''' |
− | ::add the following line in the %post --nochroot section:
| |
| %post --nochroot | | %post --nochroot |
| sed -i -e '/ *append / { s/quiet// ; s/rhgb//; }' "${LIVE_ROOT}"/isolinux/isolinux.cfg | | sed -i -e '/ *append / { s/quiet// ; s/rhgb//; }' "${LIVE_ROOT}"/isolinux/isolinux.cfg |
| + | :'''EXAMPLE''' |
| + | * disable screensaver locking |
| + | %post |
| + | # disable screensaver locking |
| + | cat >> /home/robert/.xscreensaver << FOE |
| + | lock: False |
| + | FOE |
| | | |
| :'''EXAMPLE''' | | :'''EXAMPLE''' |
− | :: Include Documents in Books directory
| + | * Include Documents in Books directory |
| %post --nochroot | | %post --nochroot |
| # Mel's Example starts (thanks to Mel Chua) | | # Mel's Example starts (thanks to Mel Chua) |
Line 436: |
Line 442: |
| WD=$PWD | | WD=$PWD |
| CACHE_DIR=$WD/../cache/books | | CACHE_DIR=$WD/../cache/books |
− | CONTENT_DIR=$INSTALL_ROOT/home/liveuser/Books | + | CONTENT_DIR=$INSTALL_ROOT/home/liveuser/Desktop/books |
| mkdir -p $CACHE_DIR | | mkdir -p $CACHE_DIR |
| mkdir -p $CONTENT_DIR | | mkdir -p $CONTENT_DIR |
| cd $CONTENT_DIR | | cd $CONTENT_DIR |
− | PDF="$PDF http://en.flossmanuals.net/ActivitiesGuideSugar/FM_25Apr10.pdf" | + | PDF="$PDF http://people.sugarlabs.org/Tgillard/ReadMeFirst-How-to-build-a-remix.pdf" |
| + | PDF="$PDF http://wiki.sugarlabs.org/go/Sugar_Creation_Kit" |
| + | PDF="$PDF http://people.sugarlabs.org/sdz/ForwardPages5-6.pdf" |
| PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Creation_Kit-en-US.pdf" | | PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Creation_Kit-en-US.pdf" |
| PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Customization_Guide-en-US.pdf" | | PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Customization_Guide-en-US.pdf" |
| + | PDF="$PDF http://en.flossmanuals.net/ActivitiesGuideSugar/FM_25Apr10.pdf" |
| + | PDF="$PDF http://en.flossmanuals.net/Sugar/FM_Sugar_28Oct08.pdf" |
| for pdf in $PDF ; do | | for pdf in $PDF ; do |
| remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $pdf | tail -1)) | | remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $pdf | tail -1)) |
Line 451: |
Line 461: |
| cp -p $file $CONTENT_DIR | | cp -p $file $CONTENT_DIR |
| done | | done |
− | # make sure to grab education bookmarks
| |
− | curl -s -4 -L https://fedorahosted.org/education/export/6c52ad9a365bddbcbaaa034d06aa49a3a7ed0854/bookmarks/default-bookmarks.html > $INSTALL_ROOT/usr/share/bookmarks/default-bookmarks.html
| |
− | cd $WD
| |
| %end | | %end |
| | | |