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

update csr_iso_modify_mac.sh to supoprt csr16.12+ #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions box_building/csr_iso_modify_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ mkdir mkdir iso
hdiutil mount $SRC

# Copy SRC ISO Content to Destination
cp -a /Volumes/CDROM/* iso
cp -a /Volumes/ISOIMAGE/* iso

# Updating Grub to Boot Serial by default
sed -i '.bak' '/^default/s/0/1/' iso/boot/grub/menu.lst
sed -i '.bak' '/^default/s/0/1/' iso/boot/grub/grub.cfg

# Create new ISO
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o "serial-$(basename $1)" iso
mkisofs -R -b boot/grub/grub.cfg -no-emul-boot -boot-load-size 4 -boot-info-table -o "serial-$(basename $1)" iso

# Unmount SRC ISO
hdiutil unmount /Volumes/CDROM
hdiutil unmount /Volumes/ISOIMAGE

# Move created ISO to original directory
mv *.iso $PDIR
Expand Down