July 21, 201015 yr A while back situations came up with additional/extra pacakges/plugins and it was mentioned to disable them somehow. In prior experiments I learned that /proc/cmdline is contains the boot line. During syslinux boot, you can add other scripts and then query /proc/cmdline for values in them. Some examples. # ------------------------------------------- # # If noexecgo is in syslinux.cfg command line # # then exit here, skip the whole GO script # # ------------------------------------------- # if grep -iq 'noexecgo' /proc/cmdline then exit fi # ----------------------------------------------- # # If troubleshoot is in syslinux.cfg command line # # mirror the syslog to USB disk, and to tty12 # # start only emhttp, skip any addons # # ----------------------------------------------- # if grep -iq 'troubleshoot' /proc/cmdline ; then mv -f /boot/syslog.current /boot/syslog.last 2>/dev/null cat /var/log/syslog > /boot/syslog.current echo "*.debug /boot/syslog.current" >> /etc/syslog.conf echo "*.* -/dev/tty12" >> /etc/syslog.conf /etc/rc.d/rc.syslog restart fi I propose the word safe to mean do not install any additional packages. Virgin unraid setup. This means the /boot/extra logic also needs to adhere to this. Comments welcome.
July 21, 201015 yr I propose the word safe to mean do not install any additional packages. Virgin unraid setup. This means the /boot/extra logic also needs to adhere to this. Agreed. And it needs to be written to the syslog, and reported by mdcmd and in "/var/local/emhttp/var.ini"
July 21, 201015 yr Excellent Idea. Tom could also add a line in the distributed syslinux.cfg for the "safe" mode in addition to the normal boot and memory test menu choices. The additional syslog mirroring in "safe" mode is a very nice touch. Joe L.
July 21, 201015 yr Author Excellent Idea. Tom could also add a line in the distributed syslinux.cfg for the "safe" mode in addition to the normal boot and memory test menu choices. The additional syslog mirroring in "safe" mode is a very nice touch. Joe L. safe = no additional plugins. Virgin unraid, bare essentials troubleshoot = Additional syslog mirroring Both can be used individually or together.
July 21, 201015 yr I would be all for safe mode. I couldn't even begin to tell you how many times I had to fix a windows machine via safe mode. LOL
July 21, 201015 yr Excellent Idea. Tom could also add a line in the distributed syslinux.cfg for the "safe" mode in addition to the normal boot and memory test menu choices. The additional syslog mirroring in "safe" mode is a very nice touch. Joe L. safe = no additional plugins. Virgin unraid, bare essentials troubleshoot = Additional syslog mirroring Both can be used individually or together. Works for me... Something like this perhaps? default menu.c32 menu title Lime Technology LLC prompt 0 timeout 100 label unRAID OS menu default kernel bzimage append initrd=bzroot label unRAID - Safe Mode (no add-ons) kernel bzimage append initrd=bzroot safe label unRAID - Troubleshooting Mode (mirrored syslog) kernel bzimage append initrd=bzroot troubleshooting label unRAID - Safe Troubleshooting Mode (no add-ons, mirrored syslog) kernel bzimage append initrd=bzroot safe troubleshooting label unRAID OS - 512Meg memory mode - Run in 512Meg of RAM kernel bzimage append initrd=bzroot mem=512M label Memtest86+ kernel memtest Notice I added a 512Meg memory mode. It is needed to allow package developers to test if their add-on will function in a minimally equipped unRAID server.
July 21, 201015 yr Something like this perhaps? Can we have it scan a directory for user additions, and include all the files in that directory so third-party plugins can add options to the syslinux menu? [running furiously for cover...] ;D ;D
July 21, 201015 yr Something like this perhaps? Can we have it scan a directory for user additions, and include all the files in that directory so third-party plugins can add options to the syslinux menu? [running furiously for cover...] ;D ;D I think you are picking on me... :'( :'( :'( :'( :'( (sobbing quietly in the corner.... feeling no love) The extra menu choices in syslinux.cfg are LOTS easier than trying to teach somebody to press "TAB" and then type them in.
July 21, 201015 yr Author The extra menu choices in syslinux.cfg are LOTS easier than trying to teach somebody to press "TAB" and then type them in. or pressing DEL/F2 during boot or F8 furiously while windows starts. up. hahahahaha!
Archived
This topic is now archived and is closed to further replies.