summaryrefslogtreecommitdiff
path: root/create_cdrom.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-06 21:41:08 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-06 21:41:08 +0100
commit4b17bcd56378f2ed5dfde17c33709187b2290539 (patch)
treeedde869f7e5758932b01089399480e721b40bf93 /create_cdrom.sh
parent7c7a001ee6b8642121d28191bcc913c2ea452900 (diff)
downloadbootstrap32-4b17bcd56378f2ed5dfde17c33709187b2290539.tar.xz
adapted to linux config naming changes
rebuild world small fixes
Diffstat (limited to 'create_cdrom.sh')
-rwxr-xr-xcreate_cdrom.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/create_cdrom.sh b/create_cdrom.sh
index b0dab38..e53bbf5 100755
--- a/create_cdrom.sh
+++ b/create_cdrom.sh
@@ -6,12 +6,15 @@
# no ramdisk, no modules, no fancy startup, just a shell script
sudo rm -rf $STAGE1_ISOLINUX
+
+# copy chroot to ISOlinux dir
mkdir $STAGE1_ISOLINUX
sudo cp -a $STAGE1_CHROOT/* $STAGE1_ISOLINUX/.
sudo chown -R cross:cross $STAGE1_ISOLINUX/.
cd $STAGE1_ISOLINUX
+
+# simple ISOlinux menu, with options for fast choosing a root device
mkdir boot/isolinux
-sudo chown cross:cross boot/isolinux/isolinux.cfg
cat >boot/isolinux/isolinux.cfg <<EOF
UI menu.c32
TIMEOUT 300
@@ -35,7 +38,10 @@ LABEL sr1
KERNEL /boot/vmlinuz-linux
APPEND root=/dev/sr1 init=/sbin/init console=ttyS0 console=tty0'
EOF
+sudo chown cross:cross boot/isolinux/isolinux.cfg
+
mkdir -p etc/init
+
cat >etc/init/boot <<EOF
#!/bin/sh
mount -t proc proc /proc