linux - Grub configuration for liveCD -


i need create custom linux livecd. used this perfect guide this.

in few words: took linux mint livecd, mount it, unpack filesysetm.squashfs, edit chroot , pack iso. faced problem when tried customize grub settings. example, want set grub_timeout zero. can edit grub config file, can't run update-grub.

voronwe@sul $  sudo chroot edit sul #  mount -t proc none /proc sul #  mount -t sysfs none /sys sul #  mount -t devpts none /dev/pts sul #  export home=/root sul #  export lc_all=c sul #  update-grub /usr/sbin/grub-probe: error: cannot find device / (is /dev mounted?). 

and can't mount boot:

sul # mount boot mount: can't find boot in /etc/fstab or /etc/mtab sul # cat /etc/fstab # unconfigured fstab base system sul # cat /etc/mtab  binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0 none /proc proc rw 0 0 none /sys sysfs rw 0 0 none /dev/pts devpts rw 0 0 

so, know how can grub configuration update on livecd?

i found way. there file isolinux/isolinux.cfg in folder, filesystem.squashfs unpacked. delete clear system boot. minimal necessary settings in file are:

default livelinux timeout 0  label livelinux   kernel /casper/vmlinuz   append  file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz quiet splash -- 

were "timeout" grub_timeout * 10. if want wait 1 second in boot menu should write

timeout 10 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -