Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remaster Tiny Core Linux Core for x64
#!/bin/sh
# Ubuntu 12.04
# sudo apt-get -y install p7zip-full genisoimage
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/core64.gz
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/vmlinuz64
# extract files
7z x Core-current.iso -ocore-current
rm -rf core-current/[BOOT]
chmod 744 core-current/boot/isolinux/isolinux.bin
# replace 32-bit files
rm core-current/boot/core.gz
rm core-current/boot/vmlinuz
mv core64.gz core-current/boot/core64.gz
mv vmlinuz64 core-current/boot/vmlinuz64
# modify the boot script
sed 's/core.gz/core64.gz/g;s/vmlinuz/vmlinuz64/g' core-current/boot/isolinux/isolinux.cfg > core-current/boot/isolinux/isolinux64.cfg
rm core-current/boot/isolinux/isolinux.cfg
mv core-current/boot/isolinux/isolinux64.cfg core-current/boot/isolinux/isolinux.cfg
# build iso
mkisofs -l -J -R -r -V TC-Core64 -no-emul-boot -boot-load-size 4 \
-boot-info-table -b boot/isolinux/isolinux.bin \
-c boot/isolinux/boot.cat -o core64-current.iso core-current
# cleanup
rm -rf core-current
@Alex-ZL

This comment has been minimized.

Copy link

@Alex-ZL Alex-ZL commented Mar 20, 2013

thx, helpful script!
Now "micorcore-current" need to be replaced with "Core-current", for the it's name has been changed.

@Jared314

This comment has been minimized.

Copy link
Owner Author

@Jared314 Jared314 commented Apr 25, 2013

Updated the script to work with the new name.

@Frankiepaul

This comment has been minimized.

Copy link

@Frankiepaul Frankiepaul commented Jun 29, 2016

/sorry/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment