· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Booyo LiveCD/Hd Install

BooyoLiveCD/HdInstall

* ¶óÀ̼¾½º¿¡ ¹®Á¦°¡ Àִ°¡? (show license ÇØ¾ß Çϳª?) * ¼³Ä¡ÇÑ °æ¿ì´Â ¿ø·¡ÀÇ »óÅ°¡ µÇµµ·Ï ÇÑ´Ù.

* ÆÐÅ°Áö ¼³Ä¡´Â root ¸¸ ÇÒ ¼ö ÀÖµµ·Ï ÇÏ¸é ¹®Á¦´Â ¹«¾ùÀΰ¡? * root ·Î ÀÎÅͳÝÀ» µ¹¾Æ ´Ù´Ï´Â °ÍÀº ¾ó¸¶³ª À§ÇèÇÑ°¡?

booyo-installer µðÀÚÀÎ

* system_type ÀÌ booyo1 ÀÎ °æ¿ì´Â ÇöÀç »óȲ´ë·Î * system_type ÀÌ FC3 ÀÎ °æ¿ì´Â ÃÖÃÊ ¼³Ä¡ »óÅ·Î
  • first boot ÀÌÈÄ
  • login ÀÌÀü »óÅÂ

* ¹®Á¦°¡ µÇ´Â ÆÄÀϵé
  • /etc/inittab
  • /etc/rc.d/booyo-
  • hardware ¼³Á¤ ÆÄÀϵé (¹«¾ù ¹«¾ùÀΰ¡?)
* ÇÑ±Û ¼³Á¤
  • /etc/sysconfig/i18n
  • gnome, mozilla, openoffice ÀÇ ÇÑ±Û ¼³Á¤ÀÌ µû·Î Àִ°¡?

knoppix-installer »ç¿ë¹ý

knoppix-installer ½ºÅ©¸³Æ® »ç¿ë: ¹öÀü 03-11

1. Å͹̳¯ âÀ» ¸¸µì´Ï´Ù.

2. knoppix-install À» ¼öÇàÇÕ´Ï´Ù.
  • su
  • knoppix-installer
  • Knoppix ¼³Ä¡ ÃʱâÈ­ OK ¹öÆ° Ŭ¸¯

3. ¸Þ´º¿¡¼­ ÇÊ¿äÇÑ ÀÛ¾÷µéÀ» ¼±ÅÃÇÏ¿© ¼öÇàÇÕ´Ï´Ù.
  • Knoppix ÁÖ-¸Þ´º
    • 1. ¼³Ä¡¸¦ À§ÇÑ ¼³Á¤ »õ·Î¿î ¼³Á¤À» ÀÛ¼ºÇÕ´Ï´Ù
    • 2. ¼³Ä¡ ½ÃÀÛ ¼³Ä¡¸¦ ½ÃÀÛÇÕ´Ï´Ù
    • 3. ÆÄƼ¼Ç ¼³Á¤ Çϵåµð½ºÅ© ÆÄƼ¼Ç ºÐÇÒ
    • 4. ¼³Á¤ Àоî¿À±â ±âÁ¸ÀÇ ¼³Á¤ ÀÐ¾î ¿À±â
    • 5. ¼³Á¤ ÀúÀå ¼³Á¤À» ÀúÀåÇÕ´Ï´Ù
    • 6. Á¾·á ÇÁ·Î±×·¥ Á¾·á

Knoppix ¼³Ä¡ (v0.3-11)

½Ã½ºÅÛ Çü½ÄÀ» ¼±ÅÃÇϽʽÿä
  • beginner
  • knoppix
  • debian
  • booyo
    • beginner
    • experienced


¼³Ä¡¸¦ À§ÇÑ ¼³Á¤

  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(1/7)
    • ÆÄƼ¼Ç ¼±Åà Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(2/7)
    • ÇÊ¿ä¾øÀ» °Í °°À½
    • ¼º¸í ÀÔ·Â Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(3/7)
    • »ç¿ëÀÚ¸í ÀÔ·Â Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(4/7)
    • Æнº¿öµå ÀÔ·Â, Æнº¿öµå ÀçÀÔ·Â Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(5/7)
    • °ü¸®ÀÚÀÇ Æнº¿öµå ÀÔ·Â, °ü¸®ÀÚÀÇ Æнº¿öµå ÀçÀÔ·Â Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(6/7)
    • ÇÊ¿ä¾øÀ» °Í °°À½.
    • ¿øÇϴ ȣ½ºÆ®¸í ÀÔ·Â Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(6/7)
    • ºÎÆ®·Î´õ°¡ ¼³Ä¡µÉ °÷À» ¼±ÅÃÇϽʽÿä Next ¹öÆ° Ŭ¸¯
  • Knoppix ÀÇ ¼³Á¤ ÀÛ¼º ´Ü°è(7/7) -- ÀÌ ºÎºÐÀÌ ÇÊ¿ä ¾ø½¿.
    • ½Ã½ºÅÛ Çü½ÄÀ» ¼±ÅÃÇϽʽÿä Next ¹öÆ° Ŭ¸¯

¼³Ä¡ ½ÃÀÛ

  • ¼³Á¤ ³»¿ë Ãâ·Â
    • ¹®Á¦: ¼­ºñ½º ¼±Åÿ¡ ¼­ºñ½º¸í Ãâ·Â ¾ÈµÊ.
    • ¼öÁ¤ ÇÊ¿äÇÒ °Í °°À½.
  • Next ¹öÆ° ±Û¸¯
    • /dev/hdc7 À» Æ÷¸ËÇÏ´Â ÁßÀÔ´Ï´Ù.(progress bar µ¿ÀÛ¾ÈÇÔ)
    • ÆÄÀϵéÀ» º¹»çÇÏ´Â ÁßÀÔ´Ï´Ù.(progress bar µ¿ÀÛ)

    • /etc/fstab °»½ÅÇÏ´Â Áß
    • º¯°æµÈ ¼³Á¤ ..
    • Knoppix ¸¦ Debian À¸·Î º¯È¯ÇÏ´Â Áß
    • floppy disk ¸¦ ³ÖÀ¸½Ê½Ã¿ä (°¡´ÉÇÑ°¡? boot.img size ¹®Á¦, grub ¸¸ ¼³Á¤ÇÏ´Â °Í °°À½)
    • ¼º°øÀûÀ¸·Î ¼³Ä¡

¼³Á¤ Àоî¿À±â

  • ÆÄÀϸíÀ» ¹Þ±â À§ÇÑ ¸Þ´º
  • ÆÄÀÏÀÌ ¾øÀ¸¸é ¿À·ù
  • ÆÄÀÏ ¼öÇà(. $1)
  • MODULES_LOAD ¿¡ ¼ÓÇÏ´Â ÆÄÀÏ ¼öÇà
    • register_vars, add_var À» ÅëÇØ ¼³Á¤µÇÁö ¾ÊÀº º¯¼ö´Â µðÆúÆ®·Î ¼³Á¤

function add_var
{
  case "$REGISTERED" in *$1*) return 1;; esac
  REGISTERED="$REGISTERED $1"
}

function register_vars
{
  for i in $@;
  do
    add_var "$i"
  done
}

function register_var
{
  export $1"_COMMENT"="$2"
  export $1"_ALLOWED"="$3"
  export $1"_CHECKIT"="$4"
  export $1"_DEFAULT"="$5"
  [ -z "${!1}" -a -n "$5" ] && export $1="$5"
}
  • check_param "$i" "${!i}" ÀÌÇظ¦ ¸ø ÇÏ°Ú½¿.

¼³Á¤ ÀúÀå

¼³Á¤À» À§ÇÑ ÆÄÀϸí ÀúÀå

ÇÔ¼ö ¼³¸í

knoppix-installer (/usr/sbin)

  • main
  • ni-main: knoppix-installer --non-interactive

main: knoppix-installer

  • message
  • rebuildfstab -r (/usr/sbin) : ÀÌ ºÎºÐÀÌ ¹®Á¦ÀÓ. ÇØ°áµÇ¾úÀ½.
    • / ÀÇ device °¡ LABEL=/ ·Î Ç¥½ÃµÇ¾î ÀÖ½¿. (°á°úÀûÀ¸·Î ·çÆ®ÆÄƼ¼ÇÀÌ Ãß°¡µÇ°Ô µÊ)
  • check_partition_ok: 00-hd-tools.bm
    • message
    • menu_part: 00-hd-tools.bm
  • menu_main: knoppix-installer
  • ¸Þ¸ð¸®°¡ 512 M º¸´Ù ÀÛ°í swap ÆÄƼ¼ÇÀÌ ¾ø°Å³ª, swap ÆÄƼ¼ÇÀÌ ÀÖÁö¸¸ 128 M º¸´Ù ÀÛÀ¸¸é, menu-part ½ÃÇà: ÆÄƼ¼Ç ÀÛ¾÷À» À§ÇÑ ¸Þ´º
  • ¸®´ª½º¸¦ À§ÇÑ ÆÄƼ¼ÇÀÌ ¾ø°Å³ª, ÀÖÁö¸¸ Å©±â°¡ ÀÛÀº °æ¿ì menu-part ½ÃÇà
  • ¾Æ´Ï¸é menu_main ½ÃÇà

ni-main: knoppix-installer

  • rebuildfstab
    • checkpartition ¾È ÇÔ.
  • load_config
  • do_install

menu_part: 00-hd-tools.bm

  • do_menu: 00-dialog.bm (Knoppix Partition-Menu)
    • action-part: 00-hd-tools.bm ±×·¡ÇÈÀÌ µÇ¸é qtparted, ¾Æ´Ï¸é cfdisk ¼öÇà
    • exit_proc: knoppix-installer

menu_main: knoppix-installer

  • do_menu: 00-dialog.bm (Knoppix Main-Menu) ¼öÁ¤ÇÊ¿ä
    • create_config: knoppix-installer
    • start_install: knoppix-installer
    • action-part-later: 00-hd-tools.bm
      action-part: 00-hd-tools.bm check_partition_ok: 00-hd-tools.bm
    • load_config: knoppix-installer
    • save_config: knoppix-installer
    • exit_proc: knoppix-installer

action-part: 00-hd-tools.bm

  • X env °¡ ¾Æ´Ï¸é
    • action-part-cfdisk: 00-hd-tools.bm
  • X env °í qtparted °¡ ÀÖÀ¸¸é
    • qtparted (/usr/sbin; binary)
      ¼³Ä¡ÇØ¾ß ÇÒ °Í °°À½.(°¡´ÉÇÑ°¡? gparted °¡ ÀÖÁö¸¸ À̸¦ ¼³Ä¡Çϱâ À§Çؼ­´Â gtkmm-2.4 °¡ ÇÊ¿äÇÏ°í ÀÌ´Â ¶Ç ¸¹Àº ÆÐÅ°Áö¸¦ ÇÊ¿ä·Î ÇÔ. Â÷¶ó¸® qtparted ¸¦ ¼³Ä¡ÇÏ´Â °ÍÀÌ ¾î¶³±î? qtparted µµ Æеµ¶ó¿¡´Â ¾ø½¿. qtparted ¼³Ä¡´Â µÇÁö¸¸ ¿À·ù°¡ ÀÖ½¿.)
  • ¾Æ´Ï¸é
    • action-part-cfdisk: 00-hd-tools.bm
      cfdisk ¸¦ »ç¿ëÇÏÁö¸¸ FC3 ¿¡´Â cfdisk °¡ ¾ø½¿. fdisk »ç¿ëÇØ¾ß ÇÔ.
  • rebuildfstab -r (/usr/sbin)

create_config: knoppix-installer

  • module_system: 07-system.bm (menu: select beginner, knoppix, debian) ÇÊ¿ä ¾ø½¿.
  • module_system_set_modules: 07-system.bm
    ( knoppix: hd swap services boot ) ( debian, beginner: hd swap name user userpass rootpass host services boot )
  • modules_${MODULES $I}

    • module_hd: 01-hd.bm (menu: confirm or select partition) ÆÄƼ¼Ç ¼±ÅÃ
    • module_swap: 02-swap.bm swap ÆÄƼ¼Ç ¼±ÅÃ
    • module_services: 05-services.bm ¼­ºñ½º ¼±ÅÃ, °ËÅä ÇÊ¿ä
    • module_boot: 06-boot.bm (menu: select) ºÎÆ®·Î´õ ¼±ÅÃ
    • module_name: 04-user-name-pass.bm ¼º¸í ÀÔ·Â, passwd ¿¡¼­ »ç¿ë
    • module_user: 04-user-name-pass.bm »ç¿ëÀÚ¸í ÀÔ·Â
    • module_userpass: 04-user-name-pass.bm »ç¿ëÀÚ Æнº¿öµå ÀÔ·Â
    • module_rootpass: 04-user-name-pass.bm ·çÆ® Æнº¿öµå ÀÔ·Â
    • module_host: 03-host.bm host ¸í ÀÔ·Â
    • module_system: ½Ã½ºÅÛ À¯Çü ¼±Åà ÇÊ¿ä ¾ø½¿.
    • ¸ðµÎ µðÆúµå¸¦ ¸ÕÀú ¼öÇàÇÔ.
    • INSTALL_READY="yes"

load_config: knoppix-installer

  • modules_${MODULES $I}_defaults
  • $1 ÆÄÀÏ¿¡ ¼³Á¤µÈ °ªµé·Î ¼³Á¤ º¯°æ

start_install: knoppix-installer

  • create_config ¸¦ ÀÌ¹Ì ¼öÇàÇÏÁö ¾ÊÀº °æ¿ì ¼öÇà
  • show_install_options: knoppix-installer ¼³Á¤À» º¸¿©ÁÜ
  • save_config: OK °¡ Ŭ¸¯µÇ¸é ¼³Á¤ ÀúÀå
  • do_install: knoppix-installer ¼³Ä¡ÀÛ¾÷ ½ÇÇà
  • make_floppy: booting/floppy.bm ºÎÆ® ÇöóÇÇ ÀÛ¼º

do_install: knoppix-installer

  • module_hd_doaction: 01-hd.bm
    • format, make filesystem, mount
    • module_hd_knoppix_copy: 01-hd.bm ÁýÁßÀûÀ¸·Î °ËÅä, »ý°¢ ÇÊ¿äÇÔ
      cp -a /KNOPPIX/* mount-point
  • module_swap_doaction: 02-swap.bm
    • insert a line for swap partition into /etc/fstab
  • update_fstab: install/01-fstab.bm
    • º¹»çµÈ fstab À» tmp ¿¡ º¸°ü
    • /etc/fstab À» »õ·Î ¸¸µë.
    • / °ü·Ã ¶óÀÎ ³ÖÀ½.
    • HD_MAP °¡ ÀÖÀ¸¸é ³ÖÀ½. (¾ÆÁ÷ Àû¿ëµÇÁö ¾Ê¾Ò½¿)
    • tmp ¹ØÀÇ fstab À» Ãß°¡
    • proc, sysfs Ãß°¡ (fd0 ÇØ´çºÎºÐ ¾ø¾Ú)
    • cdrom, dvd, cdaudio ¾ø¾Ú
    • automounter ºÎºÐ ¾ø¾Ú


  • old_installer: knoppix-installer °ËÅä ÇÊ¿ä
    • knoppix: system_type_knoppix return 0
    • beginner: system_type_beginner return 0
    • debian: system_type_beginner, system_services
  • add_bootmanager: booting/boot-tools.bm

system_type_knoppix(): install/03-system_types.bm

  • SYSTEM_USER_NAME=$USER_NAME
  • USER_NAME="$DEFAULT_USER"
  • system_copy_home: install/02-install-tools.bm
  • USER_NAME=$SYSTEM_USER_NAME
  • system_add_hd_config: install/02-install-tools.bm
  • system_copy_etc: install/02-install-tools.bm
  • system_add_services: install/02-install-tools.bm

system_copy_home: install/02-install-tools.bm

  • /home/$DEFAULT_USER/.kde °¡ µð·ºÅ丮¸é
    • rm -rf TARGET/home/$DEFAULT_USER
    • cp /home/DEFAULT_USER TARGET/home
    • USER_NAME ÀÌ knoppix °¡ ¾Æ´Ï¸é, /home/knoppix ¸¦/home/username À¸·Î º¯°æ
  • .kde °¡ ¾øÀ¸¸é
    • /etc/skel À» /home ¿¡ º¹»çÇÑ ÈÄ, /home/skel À» /home/username À¸·Î º¯°æ
    • mkdesktophdicons
    • rm /home/$USER_NAME/.kde/Autostart/showindex.desktop
    • rm /home/$USER_NAME/.kde/Autostart/sorticons.desktop
    • edit /home/$USER_NAME/.kde/share/config/kdesktoprc
    • /cdrom/KNOPPIX/background.jpg -> usr/local/lib/knoppix.jpg
    • rm /home/$USER_NAME/.netscape*
    • username ÀÌ knoppix °¡ ¾Æ´Ï¸é, (ÀÌ ºÎºÐ¿¡ ÀÇÇØ biginner, debian ÀÇ °æ¿ì mozilla ÀÇ ÇѱÛÀÌ reset µÊ)
    • rm /home/$USER_NAME/.mozilla/appreg
    • rm /home/$USER_NAME/.mozilla/pluginreg.dat
    • /home/$USER_NAME/.mozilla/default °¡ ¾øÀ¸¸é
    • /home/$USER_NAME/.mozilla/ ¹ØÀÇ $DEFAULT_USER ¸¦ default ·Î º¯°æ
    • edit /home/$USER_NAME/.mozilla/default/*/prefs.js
.*general.useragent.* À» blank ·Î
  • ÆÄÀϵéÀÇ ³»¿ëÁß knoppix °¡ ÀÖÀ¸¸é »õ·Î¿î username À¸·Î º¯°æ
  • make /home/$USER_NAME/Desktop/KNOPPIX.desktop

system_add_hd_config: install/02-install-tools.bm

  • /etc/init.d/knoppix-hd-config °¡ ¾øÀ¸¸é /etc/int.d ¿¡ º¹»ç
  • /etc/network µð·ºÅ丮 ¸¸µë
  • svae_config
  • cp /etc/network/interfaces
  • cp /etc/pcmcia
  • cp /etc/cups
  • init sequence ¿¡ knoppix-hd-config Ãß°¡ rcS.d

system_copy_etc: install/02-install-tools.bm

  • copy changed files in /etc
  • /etc/X11?/XF86Config-4.1st °¡ ÀÖÀ¸¸é, À̸¦ /etc/X11?/XF86Config-4 ·Î º¯°æ
  • Save ALSA sound volume
  • Copy volume setting
  • edit /etc/init.d/knoppix-autoconfig
    • insmod -> modprobe
    • $CMDLINE °¡ null À̸é CMDLINE À¸·Î ½ÃÀÛÇÏ´Â ÁÙ º¯°æ
    • modutils À» modutils-knoppix ·Î
    • s/if grep -q /if egrep -q/
    • /etc/init.d/modutils-knoppix °¡ ¾øÀ¸¸é º¹»ç

system_type_beginner(): 03-system_types.bm

  • user name À» knoppix ·Î ÁÖ¾úÀ» °æ¿ì ¾î¶² °á°úÀϱî?
  • update_passwd
  • system_copy_home
  • system_add_hd_config
  • system_copy_etc
  • update_status $"Converting Knoppix to Multi-User-System..."
  • system_install_templates
  • system_install_keymap
  • system_update_files
  • system_install_i18n
  • system_setup_kdm
  • system_add_hd_autoconfig
  • system_add_services
  • system_fix_menus
  • system_create_modules

system_install_templates: install/02-install-tools.bm

  • updating: profile, inittab, sudoers, hosts.allow
  • disable all services in /etc/inetd.conf

system_install_i18n: install/02-install-tools.bm

  • . /etc/sysconfig/i18n
  • /etc/environment
  • /etc/kde3/system.kdeglobals
  • /etc/kde3/kdm/kdmrc

system_setup_kdm: install/02-install-tools.bm

  • ( ÇÑ±Û °ü·Ã º¯°æ ÇÊ¿ä )
  • mv /etc/X11/Xsession.d/45xsession /root/xsession.knx-hdinstall.backup
  • force kde first time configuration
  • /home/$USER_NAME/.wmrc ¿¡ kde3 set
  • init sequence kdm rc5.d

system_add_hd_autoconfig: install/02-install-tools.bm

  • /etc/init.d/ ¹Ø¿¡ knoppix-hd-autoconfig °¡ ¾øÀ¸¸é, º¹»ç
  • init sequence ¿¡¼­ knoppix-autoconfig Á¦°Å
  • init sequence ¿¡ knoppix-hd-autoconfig Ãß°¡ rcS.d
  • edit /sbin/hotplug-knoppix
  • /KNOPPIX µð·ºÅ丮°¡ ¾øÀ¸¸é rebuildfstab -r -u knoppix -g knoppix À» rebuildfstab -r ·Î
  • edit /etc/init.d/knoppix-autoconfig
  • /KNOPPIX µð·ºÅ丮°¡ ¾øÀ¸¸é rebuildfstab -r -u knoppix -g knoppix À» rebuildfstab -r ·Î
  • edit /usr/bin/mkdesktophdicons
    • ReadOnly=1 À» ReadOnly=0
  • edit /etc/automount.sh
    • uid=knoppix,gid=knoppix À» blank ·Î
  • mkdesktophdicons

system_services: install/02-install-tools.bm

  • remove xsession, knoppix-autoconfig, knoppix-hd-config, knoppix-reboot, knoppix-halt
  • SERVICES_START
  • cp rcS.d, rc0.d, rc6.d
  • rmnologin, hotplug
  • set sysklogd, klogd, kerneld, ppp, pcmcia, logoutd, makedev, atd, cron
  • autofs
  • kdm xdm gdm
  • remove pcmcia
  • acpid

/etc/init.d/knoppix-hd-config

  • /etc/network/interfaces, /etc/pcmcia/*, /etc/cups* ¿¡ º¯È­°¡ ÀÖÀ¸¸é set
  • /etc/ppp/ppp_on_boot °¡ execution ÆÄÀÏÀ̸é set
  • set µÇ¾î ÀÖ´Â °Íµé Àç½ÃÀÛ, ¶Ç´Â ½ÃÀÛ
  • °ü·Ã µ¥¸ó start

/etc/init.d/knoppix-hd-autoconfig

  • µ¥ºñ¾È Çü½Ä
    • system_mode_debian (looks in development): now do nothing
  • biginner Çü½Ä
    • system_mode_beginner (looks in development): now run knoppix-autoconfig
  • update_desktop_hdicons

knoppix-installer function list

/usr/sbin/knoppix-installer

clean_exit(), logit, exit_proc, setup_dialog_messages(), add_var, register_vars, register_var, update_status, create_config, check_param, load_config, save_config, show_install_options, old_installer, do_install, start_install, menu_main, main(), ni-main

  • create_config: modules_system ºÎºÐ ´Ù½Ã »ç¿ë beginner, experienced
    • module_system 0
    • module_hd, module_name, module_user, module_userpass, module_rootpass, module_host, module_boot, module_system À» call ÇÔ.
    • module_name, module_host ¾ø¾Ú.
  • old_installer: system_type_booyo »ý¼º

/usr/share/knoppix-installer/modules

  • ½º±×¸³Æ®
    • 00-dialog.bm 00-hd-tools.bm 00-knoppix-utils.bm 00-setuser.bm 01-hd.bm 02-swap.bm 03-host.bm 04-user-name-pass.bm 05-services.bm 06-boot.bm 07-system.bm template.bm
  • µð·ºÅ丮
    • install booting

00-dialog.bm

  • Xdialog ¸¦ gdialog ·Î º¯°æ
  • ¿É¼ÇÀÌ Á¦´ë·Î µÇ´ÂÁö Á¡°Ë ÇÊ¿ä. ¹®Á¦ ¸¹À½.
  • http://dag.wieers.com/packages/xdialog/ ¿¡¼­xdialog-2.1.1-1.1.fc3.rf.i386.rpm ´Ù¿î·Îµå ¹Þ¾Æ ¼³Ä¡.

00-setuser.bm

  • suknoppixmenus: system_fix_menus():02-install-tools.bm ¿¡¼­¸¸ »ç¿ë
  • install/03-system_types.bm ¿¡¼­¸¸ »ç¿ë beginner ÀÎ °æ¿ì
  • BOOYO ´Â ÇÊ¿ä ¾ø½¿. ´Ù¸¥ ¿ëµµ·Î »ç¿ëÇÒ ¼ö ÀÖ½¿.
  • system_fix_menus ¿¡¼­ ÀÛ¾÷À» ÇÏ´Â °ÍÀÌ ¸Â´Â °Í °°À½.
    • installer ¸Þ´º Ãß°¡
    • gparted ¸Þ´º Ãß°¡
    • ±âŸ µîµî
  • suknoppixmenus ´Â ¾ø¿¡ ¹ö¸².

05-services.bm

  • ¾ø¾Ö´Â °ÍÀÌ ÁÁÀ»Áö, º¯ÇüÇÏ´Â °ÍÀÌ ÁÁÀ»Áö ¸ð¸£°Ú´Ù.
  • ¼±ÅÃÀ» Çϵµ·Ï ÇÏ´Â °ÍÀº ¾î¶³±î?
  • ¿ì¼±Àº ¼­ºñ½º¸í¸¸ º¯°æÇÒ °Í. »ý°¢Á» ÇÏÀÚ....

07-system.bm

  • boot ¿É¼Ç¿¡ ´ëÇØ Á» ´õ »ý°¢ÇØ¾ß ÇÏ°í, experienced °¡ ¹«¾ùÀ» ´õ ÇÒÁö °áÁ¤ÇÒ ÇÊ¿ä ÀÖ½¿.

00-hd-tools.bm

  • ÇÔ¼ö
    • fdisk_l, find_swap_partitions, find_swap_partitions2,
find_root_partitions, find_disks, update_swap_parts, check_partition_ok, action-part-cfdisk, action-part, action-part-later, menu_part

  • Knoppix to BOOYO: menu_part, action-part-cfdisk
  • action-part ¿¡¼­ qtparted ¸¦ gparted ·Î º¯°æ
  • action-part-cfdisk ¿¡¼­ cfdisk ¸¦ fdisk ·Î º¯°æ
  • ´Ù °íÄ£ °Í °°À½.

07-system.bm

  • ÇÔ¼ö
    • module_system_defaults(), module_system_showinfo(),
module_system(), module_system_set_modules(), module_system_get_cmdlines()

/usr/share/knoppix-installer/modules/booting

  • boot-tools.bm floppy.bm

boot-tools.bm

  • create_initrd()
    • which mkext2fs ´Â which mkfs.ext2 ·Î º¯°æ
    • lilo ¸¦ ³Ö°í experienced ¸¸ ¼±ÅÃÇϵµ·Ï ÇÒ±î?
    • reiserfs-utils-3.6.18-1.i386.rpm
    • xfsprogs-2.6.13-2.i386.rpm


floppy.bm



/usr/share/knoppix-installer/modules/install

  • 01-fstab.bm 02-install-tools.bm 03-system_types.bm

02-install-tools.bm

  • ÇÔ¼ö
    • system_findchanged(), system_add_hd_autoconfig(), system_add_hd_config(), system_copy_etc(), system_copy_home(), system_setup_kdm(), system_install_templates(), system_add_services(), system_services(), system_install_keymap(), system_install_i18n(), system_create_modules(), system_update_files(), system_fix_menus()




action-part-later action-part: /usr/sbin/qtparted, rebuildfstab -r check_partition_ok

* module_hd_doaction
  • formatting mkfs.$HD_FSTYPE
  • tune2fs (ÆÄÀÏ ½Ã½ºÅÛÀÌ ext2 ³ª ext3 ÀÎ °æ¿ì)
  • mounting filesystem
  • HD_MAP ´Â ¾ÆÁ÷ Àû¿ëµÇÁö ¾ÊÀ½.
  • module_hd_booyo_copy

* module_hd_knoppix_copy
  • cp -a /KNOPPIX/* /mnt/hdinstall
  • sync
  • ¸î°¡Áö ´õ º¹»ç¸¦ ÇØ¾ß ÇÏ´ÂÁö »ý°¢ÇÒ °Í.(ƯÈ÷ /etc, /home µî)

* module_swap_doaction
  • insert swap into /etc/fstab
  • /etc/fstab °ú ¿¬°èÇÏ¿© Á» ´õ »ý°¢ÇØ¾ß ÇÔ.

* update_fstab (modules/install/01-fstab.bm)
  • need to understand completely in order to modify for captive (ntfs write)

* old_installer
  • system type ¿¡ µû¶ó call



add_bootmanager: /usr/share/knoppix-installer/modules/boot.bm

module_swap_doaction insert swap into /etc/fstab clear /etc/fstab and insert only swap partition

update_fstab: used in hd install

  • copy /BOOYO/etc/fstab À» tmp ¹Ø¿¡ º¹»ç
  • /etc/fstab À» »õ·Î ¸¸µë.
  • insert / into fstab
    • not ext: $HD_CHOICE / $HD_FSTYPE defaults 0 1
    • ext: $HD_CHOICE / $HD_FSTYPE defaults,errors=remount-ro 0 1
  • HD_MAP Àº ¾ÆÁ÷ »ç¿ëÇÏÁö ¾ÊÀ½
  • º¹»çÇØ ³õÀº fstab À» append
  • append
none  /proc  proc  defaults  0  0
/dev/fd0  /media/floppy  auto    pamconsole,exec,noauto,managed 0 0 (hal ÀÌ Ã³¸®Çϵµ·Ï ÇÒ °Í)
none  /sys  sysfs  defaults  0  0
  • add /dev/cdrom* /dev/dvd /dev/cdaudio (hal ÀÌ Ã³¸®Çϵµ·Ï ÇÒ °Í)
  • /mount ¹Ø¿¡ »ý¼ºµÈ ÆÄÀÏµé º¹»ç
  • rebuildfstab -r (Áö¿ì±â¸¸ ÇÏ´ÂÁö, Áö¿ì°í »õ·Î »ý¼ºÇÏ´ÂÁö º¼ °Í)
  • perl -pi -e 's/(ntfs noauto,users,exec,ro).*/\1,umask=000 0 0/' $TARGET_MNT_POINT/etc/fstab
  • perl -pi -e 's/(vfat noauto,users,exec).*/\1,umask=000 0 0/' $TARGET_MNT_POINT/etc/fstab

    save swap partition
    insert head comment
    insert selected partitoin to install knoppix
    Add other HD-mappings
    Add saved swap devices
    Add proc partition
    Add /dev/fd0
    Add CD-Roms/DVD/...
    Let Knoppix detect all other partitions
        chroot "$TR" mount /proc
        chroot "$TR" rebuildfstab -r
        chroot "$TR" umount /proc
# NTFS Partition(en) mit umask=000 Option ausstatten

perl -pi -e 's/(ntfs noauto,users,exec,ro).*/\1,umask=000 0 0/' $TARGET_MNT_POINT/etc/fstab

# USB Eintrag in die /etc/fstab vornehmen
echo usbdevfs /proc/bus/usb usbdevfs defaults 0 0 >> $TARGET_MNT_POINT/etc/fstab

cp $TARGET_MNT_POINT/etc/fstab $TMPDIR/
# remove uid=, gid= - entries for vfat; instead use that of running process
[ -z "$USER_NAME" ] && USER_NAME="$DEFAULT_USER"
sed 's/,umask=000,uid='$DEFAULT_USER',gid='$DEFAULT_USER'/,umask=000/g; s/$DEFAULT_USER/'$USER_NAME'/g' $TMPDIR/fstab > $TARGET_MNT_POINT/etc/fstab

rebuildfstab is equal to buildfstab call scanpartitions

knoppix-installer and berry-installer


modules/00-knoppix-utils.bm 00-berry-utils.bm


modules/00-dialog.bm


Xdialog ¿Í gdialog ºñ±³ ÇÊ¿ä

00-hd-tools.bm


fdisk_l, /opt/berry/fs

knoppix berry

rebuildfstab, /opt/berry/fs

modules/00-setuser.bm


suknoppixmenus

modules/01-hd.bm


knoppix berry

debian redhat

modules/02-swap.bm


knoppix berry

modules/03-host.bm


no need to change

modules/user-name-pass.bm


µé¿©´Ù º¸°í »ý°¢À» ÇØ¾ß ÇÔ. root passwd ¿Í username, user passwd ¸¦ °íÃÄ¾ß ÇÔ.

modules/05-services.bm


booyo ÀÇ °æ¿ì ¾ø¾îµµ µÉ °ÍÀ¸·Î »ý°¢µÊ.

modules/06-boot.bm


default setting ¸¸ ´Ù¸§.

modules/07-system.bm


booyo ÀÇ °æ¿ì ÇÊ¿ä ¾øÀ» °ÍÀÓ. ÀÌ¿¡ µû¶ó º¯°æµÇ¾ß ÇÏ´Â ÆÄÀϵéÀÌ ¹«¾ùµéÀϱî?

modules/booting/boot-tools.bm


µé¿©´Ù º¸¸é Àç¹ÌÀÖÀ» °ÍÀ¸·Î »ý°¢µÊ. ¾ÕÀ¸·Î ÇÊ¿äµµ ÇÒ °ÍÀ¸·Î »ý°¢µÊ. berry Á¡°Ë ¸ÕÀú ÇÒ °Í
  • get_short_kernel_name()
  • create_initrd()
  • make_lilo_conf() ¾ø¿¡ ¹ö¸².
  • install_lilo() ¾ø¿¡ ¹ö¸².
  • translate_linux_to_grub ()
  • install_grub()
  • add_bootmanager()

add_bootmanager()


ÇÊ¿äÇÑ º¯¼ö: TARGET_MNT_POINT, $1, BOOT_LOADER, BOOT_WHERE

  • target partition ¿¡¼­ /proc ¸¶¿îÆ®
  • Ä¿³ÎÀÌ ¿©·¯°³ÀÏ °æ¿ì /lib/modules ¹ØÀ» Á¡°ËÇÏ¿© °¢°¢ÀÇ initrd.img ¸¦ ¸¸µç´Ù.
    • call create_initrd
  • ÇöÀç µ¹°í ÀÖ´Â Ä¿³ÎÀÌ target partition ¿¡ ¾øÀ» °æ¿ì BOOT_RUNNING_KERNEL="$1"
    • ÀÌ À̾߱â´Â ¼³Ä¡½Ã /lib/modules ¹Ø¿¡ ÀÖ´Â ¸ðµâÀÇ ¹öÀü¸í°ú ´Ù¸¥ Ä¿³Î°ú ´Ù¸¥ initrd.img ¸¦ »ç¿ëÇÑ´Ù´Â ÀǹÌÀÓ.
  • µðÆúÆ® ¸µÅ©¸¦ ¸¸µå´Âµ¥ Á¶±Ý ÀÌ»óÇÔ. Á¡°Ë ÇÊ¿ä
    • ÀÌ°ÍÀÌ Á¦´ë·Î ¼öÇàµÈ´Ù¸é ÇöÀç directory °¡ $TARGET_MNT_POINT/boot/ ¿©¾ß ÇÔ. À̸¦ ¼öÇàÇϱâ Àü¿¡ À̸®·Î cd µÇ¾î ÀÖ´ÂÁö Á¡°Ë ÇÊ¿ä.
  • install_grub or install_lilo ¾ø¿¡ ¹ö¸².

create_initrd()

¿©±â¿¡¼­ SATA °ü·Ã ÀÛ¾÷À» ÇØ ÁÖ¾î¾ß ÇÔ. (¾î·Á¿ï °ÍÀ¸·Î ¿¹»óµÊ)
  • export INITRD_PARAM_$INITRD_POSTFIX: ½ÇÁ¦·Î ¾ÆÁ÷ »ç¿ëµÇ´Â °÷ÀÌ ¾ø½¿.
  • ext3 À̰ųª reiserfs ÀÎ °æ¿ì initrd ¿¡¼­ ¸ðµâÀ» ·ÎµåÇØ¾ß ÇÔ.
  • ext2 ÀÎ °æ¿ì initrd ¸¦ ¸¸µé°í comment ·Î ó¸®ÇÔ.(¿Ö?)
    • add_bootmanager() ¿¡¼­ initrd °¡ µðÆúÆ®¸¦ ¸¸µå´Âµ¥ ÇÊ¿äÇÔ.
  • chroot_it mkinitrd --preload="$INITRD_MODULES" /boot/initrd.img-$BOOT_KERNEL $BOOT_KERNEL

install_grub(): ¼öÁ¤Àü

  • grub-install target-partition (grub.conf ´Â »ý¼ºµÇÁö ¾ÊÀ½)
  • ¿À·ù°¡ ¹ß»ýÇÏ¸é ´Ù½Ã Çѹø ¼öÇà (¿Ö ÀÌ·¸°Ô ÇÒ±î?)
  • mbr ¿¡ ¼³Ä¡ÇÏ´Â °ÍÀ̸é, device.map ¿¡¼­ (hd0) ¿¡ ÇØ´çÇÏ´Â ÆÄƼ¼ÇÀ» ã¾Æ GRUB_MBR ¿¡ ¼³Á¤
  • GRUB_MBR ÀÌ ¾øÀ¸¸é ¿À·ù
  • GRUB_MBR ÀÌ ÀÖÀ¸¸é ù¹ø° ºí·°À» º¸°ü
  • menu.lst ¸¦ Áö¿ì°í chroot_it update-grub -y ¼öÇà (FC3 ¿¡´Â update-grub °¡ ¾ø½¿)
  • command ¸¦ ¿É¼ÇÀ¸·Î Ãß°¡
  • fstab À» ÀÌ¿ëÇÏ¿© windows Ãß°¡
  • update-grub
  • /etc/kernel-img.conf º¯°æ (FC3 ¿¡´Â ¾ø½¿)
  • mbr À» »ç¿ëÇÏ¸é ´Ù½Ã Çѹø grub-install ¼öÇà

install_grub(): ¼öÁ¤ÈÄ

  • grub-install target-partition (grub.conf ´Â »ý¼ºµÇÁö ¾ÊÀ½)
  • ¿À·ù°¡ ¹ß»ýÇÏ¸é ´Ù½Ã Çѹø ¼öÇà (¿Ö ÀÌ·¸°Ô ÇÒ±î?)
  • mbr ¿¡ ¼³Ä¡ÇÏ´Â °ÍÀ̸é, device.map ¿¡¼­ (hd0) ¿¡ ÇØ´çÇÏ´Â ÆÄƼ¼ÇÀ» ã¾Æ GRUB_MBR ¿¡ ¼³Á¤
  • GRUB_MBR ÀÌ ¾øÀ¸¸é ¿À·ù
  • GRUB_MBR ÀÌ ÀÖÀ¸¸é ù¹ø° ºí·°À» º¸°ü
  • GRUB_VGA ¼³Á¤
  • ROOT_PART ¼³Á¤
  • make_grub_conf
  • mbr À» »ç¿ëÇÏ¸é ´Ù½Ã Çѹø grub-install ¼öÇà

make_grub_conf()


  • ±âº» »çÇ× ¼³Á¤: timeout 30, default 0, fallback 1
    • Ä¿³ÎÀÌ ÇϳªÀÎ °æ¿ì, ù¹ø° Ä¿³Î¿¡ ¹®Á¦°¡ ÀÖÀ¸¸é À©µµ¿ìÁî°¡ ºÎÆõǾî¾ß ÇÔ. default Ä¿³ÎÀ» »ç¿ëÇϹǷΠ¹®Á¦°¡ ÀÖ½¿.


¾Ë¾Æ³½ »çÇ×


  • grub-install ÀÇ ¿É¼ÇÁß --root-directory °¡ ½ÇÁ¦·Î »ç¿ëÇÏ´Â grub.conf ¸¦ ÁöÁ¤ÇÏ´Â °Í °°À½.
  • mbr À» »ç¿ëÇÏ´Â °ÍÀº ´ÜÁö grub-install ¿¡¸¸ ¿µÇâÀ» ÁÜ
  • root ¿Í kernel ÀÇ root ¿É¼ÇÀº ¼³Ä¡µÈ ÆÄƼ¼ÇÀ» °¡¸®ÄÑ¾ß ÇÔ.

Á¶»ç ÇÊ¿äÇÑ °Íµé


  • grub-install À» ¿É¼Ç¾øÀÌ ¼öÇàÇÏ´Â °æ¿ì
    • mbr À» »ç¿ëÇÑ´Ù´Â °ÍÀº bios ¿¡¼­ ù¹ø°·Î Àâ°í ÀÖ´Â Çϵåµð½ºÅ©ÀÇ Ã¹¹ø° sector ¿¡ ¾´´Ù´Â ÀǹÌÀÓ.
    • ´Ù¸¥ Çϵåµð½ºÅ© ÆÄƼ¼ÇÀ» »ç¿ëÇÏ´Â °æ¿ì¿¡´Â ¾î¶»°Ô µÇ³ª?

LILO ÀÇ ³»¿ëÀ» º¸°í Ãß°¡ ¼öÁ¤ÇØ¾ß ÇÒ °Í °°À½.

install_lilo()
  • mbr ¼³Ä¡°¡ ¾Æ´Ï¸é LILO_BOOT=$HD_CHOICE
  • mbr ¼³Ä¡¸é
    • device.map À» ¸¸µé±â À§ÇØ grub-install ¼öÇà
    • ¿À·ù°¡ ³ª¸é ´Ù½Ã Çѹø ¼öÇà
    • device.map ¿¡¼­ (hd0) ¿¡ ÇØ´çÇÏ´Â µð¹ÙÀ̽º ¼±ÅÃÇÏ¿© LILO_BOOT ¿¡ ¼³Á¤
    • LILO_BOOT °¡ null À̸é, /proc/partitions ¿¡¼­ sd ³ª hd ¿¡ ÇØ´çÇÏ´Â ÁÙÀ» ã¾Æ 4 ¹ø° Ç׸ñ¸¸ ÃßÃâÇÑ ÈÄ, sort ÇÏ¿© ù¹ø° Ç׸ñÀ» LILO_BOOT ¿¡ ¼³Á¤ (grub ¿¡¼­µµ °°Àº ÀÏÀ» ÇÏ´Â °ÍÀÌ ÁÁÁö ¾ÊÀ»±î?)
    • ù¹ø° ºÒ·° º¸°ü
  • LILO_VGA, LILO_ROOT ¼³Á¤
  • make_lilo_conf > $TARGET_MNT_POINT/etc/lilo.conf
  • ¿À·ù Á¡°Ë
  • chroot_it lilo
  • LILO bootsector º¸°ü

make_lilo_conf()
  • ±âº» »çÇ× ÀÛ¼º
    • lba32
    • boot=$LILO_BOOT
    • root=$LILO_ROOT
    • bitmap=$LILO_BITMAP
    • bmp-colors=$LILO_BITMAP_COLORS
    • bmp-table=$LILO_BITMAP_TABLE
    • bmp-timer=$LILO_BITMAP_TIMER
    • install=$LILO_INSTALL_MODE
    • delay=20
    • prompt
    • timeout=$LILO_TIMEOUT
    • vga=$LILO_VGA
  • LILO_CMDLINE ¼³Á¤
  • LILO_INITRD ¼³Á¤
  • default Ä¿³Î ¼³Á¤
  • Ãß°¡ Ä¿³Î ¼³Á¤
  • À©µµ¿ìÁî Ãß°¡


modules/booting/floppy.bm

  • ´ÜÁö grub ¸¸À» ¼³Ä¡ÇÏ´Â °ÍÀ¸·Î º¸ÀÓ.
  • Ä¿³ÎÀÇ »çÀÌÁî ¹®Á¦´Â ¿ì·ÁÀεí ÇÔ.


modules/install/01-fstab.bm


fstab ÀÇ ´Ù¸¥ Á¡ (debian, fedora)

modules/install/02-install-tools.bm


booyo ´Â ÇÊ¿ä¾øÀ» °Í °°Àºµ¥....

modules/install/03-system_types.bm


booyo ´Â ÇÊ¿ä ¾øÀ» °ÍÀ¸·Î »ý°¢µÊ.

qtpatred or gparted


qtparted ¸¦ ¼³Ä¡ÇÏ´Â °ÍÀÌ º¸´Ù ½¬¿ò. gparted ¸¦ ¼³Ä¡Çϱâ À§Çؼ­´Â ¼³Ä¡ÇØ¾ß ÇÏ´Â °ÍÀÌ ¸¹À½. ´ëºÎºÐ rpm À¸·Î µÇ¾î ÀÖÁö ¾ÊÀ½. rpm À¸·Î µÇ¾î ÀÖ´Â °ÍÀ» ã¾ÒÀ½. 2005.5.9

¼öÁ¤ ÀÛ¾÷



mkinitrd option ÀÌ º¯ÇßÀ½.

update-grub °¡ FC3 ¿¡´Â ¾ø½¿. knoppix ÀÇ ½ºÅ©¸³Æ® º¹»ç tempfile ÀÌ ¾øÀ¸¹Ç·Î mktemp »ç¿ë
#newtemplate=$(tempfile)
newtemplate=`mktemp ` || exit 1

#buffer=$(tempfile)
buffer=`mktemp ` || exit 1
HD_CHOICE="/dev/hdb1"
        GRUB_MBR=$(grep "(hd0)" device.map | awk '{ print $2 }')
        HD_CHOICE_BASE=${HD_CHOICE%%[0-9]}
        HD_CHOICE_NUM=${HD_CHOICE#$HD_CHOICE_BASE}
        GRUB_PART=""
        if [ "$GRUB_MBR" != "$HD_CHOICE_BASE" ]
        then
                GRUB_PART=$(grep $HD_CHOICE_BASE device.map | awk '{ print $1 }')
        fi
        if [ -z "$GRUB_PART" ]
        then
                ROOT_PART="(hd0,$(($HD_CHOICE_NUM-1)))"
        else
                GRUB_PART_BASE=${GRUB_PART%)}
                ROOT_PART="$GRUB_PART_BASE,$(($HD_CHOICE_NUM-1)))"
        fi
echo $ROOT_PART

fstab °ü·Ã

[root@localhost mnt]# cat /proc/mounts
rootfs / rootfs rw 0 0
/proc /proc proc rw,nodiratime 0 0
none /dev tmpfs rw 0 0
/dev/root / ext2 rw 0 0
none /dev tmpfs rw 0 0
/proc /proc proc rw,nodiratime 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
[root@localhost mnt]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext2    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/sda6               swap                    swap    defaults        0 0
/dev/hda                /media/cdrecorder       auto    pamconsole,ro,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
title Fedora Core (2.6.9-booyo)
        root (hd0,4)
        kernel /boot/vmlinuz-2.6.9-booyo ro root=LABEL=/
        initrd /boot/initrd-2.6.9-booyo.img

/etc/fstab ÀÇ º¯È­¸¦ ÃßÀûÇØ¾ß ÇÔ.

/dev/sda10 / ext2 defaults,errors=remount-ro 0 1
/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hdb1 /mnt/hdb1 ext2 noauto,users,exec 0 0

fstab in knoppix-autoconfig


Ãʱâ /etc/fstab
/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/cdrom  auto   user,noauto,exec,ro 0 0

cdrom automount and add /etc/fstab

rebuildfstab -r -u knoppix -g knoppix

ÇÊ¿äÇÑ ÀÛ¾÷ ¼öÇà (Á¶±Ý º¹ÀâÇÔ)

automounter ÀÌ ÀÖÀ¸¸é floppy, cdrom ÀÇ mount point Á¶Á¤ /mnt/auto/floppy

module_system() in 07-system.bm


register_vars "SYSTEM_MODULE SYSTEM_TYPE"

booyo-installer, 02-install-tools.bm

note


beginner ¿Í expert ·Î ±¸ºÐÇÏ¿© expert ´Â file system ¼±Åðú ÃʱâºÎÆýà ¼³Á¤À» Çϵµ·Ï ÇÏ´Â °ÍÀÌ ¾î¶³±î? /.unconfigured ¸¦ »ý¼ºÇÏ¸é µÉ °Í °°À½. ÀÌ °æ¿ì root passwd ´Â rc.sysinit ¿¡¼­ ¼³Á¤ÇÔ.

module_name Àº ¾ø¿¡´Â °ÍÀÌ ÁÁ°Ú½¿. (passwd ¿¡¼­ »ç¿ëÇÔ. ÇÊ¿äÇÒ °ÍÀ¸·Î »ý°¢µÊ)

BOOT_LOADER Àº grub ·Î fix Çß½¿.

SYSTEM_TYPE ¸¦ INSTALL_TYPE ·Î º¯°æÇß½¿. °è¼Ó °ËÅäÇØ¾ß ÇÔ.

boot-tools.bm: GRUB_CMDLINE=$(module_system_get_cmdlines): ¿ì¼± comment ó¸®Çß½¿. »ý°¢ÇØ º¼ ÇÊ¿ä ÀÖ½¿. experienced ´Â grub.conf ¸¦ ¼öÁ¤º¸¿ÏÇÒ ´É·ÂÀÌ ÀÖ´Ù. module_system_get_cmdlines() {
case "$INSTALL_TYPE" in
beginner)
echo $(cat /proc/cmdline | sed 's/vga=^ * //g; s/initrd=^ * //g; s/BOOT_IMAGE=^ * //g')
;; experienced)
SYSTEM_RESCUE_CMDS="acpi|noapic|nosmp|pci|pnpbios|noapm" SYSTEM_RESCUE_CMDLINE=$(cat /proc/cmdline | tr ' ' '\n' | egrep "$SYSTEM_RESCUE_CMDS" | tr '\n' ' ') echo "ramdisk_size=100000 lang=ko apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce $SYSTEM_RESCUE_CMDLINE"
;;
esac
}

modules/install/03-system_types.bm »ý°¢Çؼ­ °íÃÄ¾ß ÇÔ.

gparted

http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/ ÀÌ »çÀÌÆ®¿¡¼­ ¹Þ¾Æ¼­ ó¸®ÇÏ´Â °ÍÀÌ ¸ÂÀ» °Í °°À½.
  • gparted-0.0.8-2.rhfc3.nr.i386.rpm
  • gtkmm24-2.4.8-1.rhfc3.nr.i386.rpm
  • glibmm-2.4.7-1.rhfc3.nr.i386.rpm
  • libsigc++2-2.0.11-1.rhfc3.nr.i386.rpm
[root@localhost ~]# rpm -ivh libsigc++2-2.0.11-1.rhfc3.nr.i386.rpm
°æ°í: libsigc++2-2.0.11-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c
Áغñ Áß...               ########################################### [100%]
   1:libsigc++2             ########################################### [100%]
[root@localhost ~]# rpm -ivh glibmm-2.4.7-1.rhfc3.nr.i386.rpm
°æ°í: glibmm-2.4.7-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2cÁغñ Áß...               ########################################### [100%]
   1:glibmm                 ########################################### [100%]
[root@localhost ~]# rpm -ivh gtkmm24-2.4.8-1.rhfc3.nr.i386.rpm
°æ°í: gtkmm24-2.4.8-1.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c
Áغñ Áß...               ########################################### [100%]
   1:gtkmm24                ########################################### [100%]
[root@localhost ~]# rpm -ivh parted-1.6.15-5.i386.rpm
°æ°í: parted-1.6.15-5.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Áغñ Áß...               ########################################### [100%]
        parted-1.6.15-5 ÆÐÅ°Áö´Â ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù
[root@localhost ~]# rpm -ivh gparted-0.0.8-2.rhfc3.nr.i386.rpm
°æ°í: gparted-0.0.8-2.rhfc3.nr.i386.rpm: V3 DSA signature: NOKEY, key ID b8693f2c
Áغñ Áß...               ########################################### [100%]
   1:gparted                ########################################### [100%]
parted °¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö Á¡°Ë ÇÊ¿ä ½ÃÇèÀ» ¾î¶»°Ô ÇØ¾ß ÇÒÁö????

http://dag.wieers.com/packages/ntfsprogs/
  • ntfsprogs-1.9.4-1.1.fc3.rf.i386.rpm
[root@localhost ~]# rpm -ivh ntfsprogs-1.9.4-1.1.fc3.rf.i386.rpm
°æ°í: ntfsprogs-1.9.4-1.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Áغñ Áß...               ########################################### [100%]
   1:ntfsprogs              ########################################### [100%]

  • reiserfs-utils-3.6.18-1.i386.rpm
  • xfsprogs-2.6.13-2.i386.rpm

===

update-grub

knoppix ½ºÅ©¸³Æ® º¹»ç tempfile ÀÌ ¾øÀ¸¹Ç·Î mktemp ·Î º¯°æ

htpasswd ¾øÀ½

2005. 5. 12

  • booyo-installer
    • main menu adjust
  • modules/00-dialog.bm
    • function menu adjust
  • modules/07-system.bm
    • module_system() bug fix
  • htpasswd
    • apache ¼³Ä¡

½ÇÁ¦ º¹»ç ÀÛ¾÷

  • knoppix: system_type_knoppix return 0
  • beginner: system_type_beginner return 0
  • debian: system_type_beginner, system_services

  • system_type_knoppix()
    • SYSTEM_USER_NAME=$USER_NAME
    • USER_NAME="$DEFAULT_USER"
    • system_copy_home
    • USER_NAME=$SYSTEM_USER_NAME
    • system_add_hd_config
    • system_copy_etc
    • system_add_services

  • system_type_beginner()
    • update_passwd
    • system_copy_home
    • system_add_hd_config
    • system_copy_etc
    • update_status $"Converting Knoppix to Multi-User-System..."
    • system_install_templates
    • system_install_keymap
    • system_update_files
    • system_install_i18n
    • system_setup_kdm
    • system_add_hd_autoconfig
    • system_add_services
    • system_fix_menus
    • system_create_modules

system_type_fedora3

system_type_booyo1


root ¸¦ ramdisk ·Î ¿Å°Ü¾ß ÇÒ °Í °°À½. beginner ÀÇ °æ¿ì´Â ±×´ë·Î º¹»ç experienced ÀÇ °æ¿ì´Â /etc/skel ¸¸ º¹»ç

live cd ¿¡¼­ /etc/rc.d/rc5.d Á¶Á¤ÇÒ °Í Á» ´õ »ý°¢ÇØ º¸ÀÚ

system_install_templates ¿¡¼­ ¹«¾ùÀ» ÇÒ °ÍÀÎÁö »ý°¢ ÇÊ¿ä system_update_files »ý°¢ÇÒ ÇÊ¿ä ÀÖÀ½ system_install_i18n »ý°¢ÇÒ ÇÊ¿ä ÀÖÀ½


°í·ÁÇØ¾ß ÇÏ´Â ÆÄÀϵé

* linuxrc
  • modules À» modules.conf ¿¡ ³Ö¾î¾ß Çϴ°¡?
  • mkinitrd ¿¡¼­ ¾Ë¾Æ¼­ ÇØ ÁÖ³ª?
  • ld.so.cache ¸¦ build ¿¡¼­ »õ·Î ¸¸µé¾î Áִ°¡?
    • º»·¡ÀÇ ld.so.cache ·Î ȯ¿øÇØ¾ß Çϳª?
  • read/write ·Î ¸¸µå´Â µð·ºÅ丮: /home /etc /var
  • /root ¿¡ write °¡ µÇ´ÂÁö Á¡°Ë ÇÊ¿ä?
    • µÈ´Ù¸é ¿Ö µÇ´Â°¡? /ramdisk ¿¡ ¸¸µéÁö ¾ÊÀ» °æ¿ì ¾î¶² ¿µÇâÀÌ Àִ°¡?
    • initrd °¡ ¾µ ¼ö ÀÖ´Â ¸Þ¸ð¸®¿¡ ÇÑ°è°¡ ÀÖÁö ¾ÊÀº°¡?
The root filesystem doesn't have to be modified often, except for some configuration files. So it is possible to mount this directory read-only. There are several reasons:

    * if the user wants a simple solution to use a read-only support for the root directory (perhaps a better solution could be to have a look to how create one's own live CD).
    * if the user is in paranoid mode and wishes to secure its system even more.
    * finally, to avoid that power loss or system crash damage the root partition. 

* booyo-init
  • /etc/localtime /etc/sysconfig/i18n
  • /etc/sysconfig/keyboard (mkxf86config)
  • /etc/sysconfig/clock /etc/sysconfig/network
  • /etc/sysconfig/network-scripts/ifcfg-eth0
  • /etc/sysconfig/pcmcia

* hwsetup-booyo
  • /etc/sysconfig/booyo (mkxf86config)
  • /etc/sysconfig/hwconf
  • /etc/sysconfig/xserver (mkxf86config ¿¡¼­ »ç¿ë)
  • /etc/sysconfig/netcard (¿Ö ÀÖÁö?)
  • /etc/sysconfig/sound
  • /etc/sysconfig/mouse (mkxf86config)

* mkxf86config
  • /etc/X11/xorg.conf

install fc4

{{{
    7  umount /mnt/hdc6
    8  mkfs.ext2 /dev/hdc6
    9  mount /dev/hdc6 /mnt/hdc6
   10  cd /mnt/hdc6
   16  cp -Rp /BOOYO/bin /mnt/hdc6/
   19  cp -Rp /BOOYO/boot /mnt/hdc6/
   20  cp -Rp /BOOYO/lib /mnt/hdc6/
   22  cp -Rp /BOOYO/opt /mnt/hdc6/
   23  cp -Rp /BOOYO/sbin /mnt/hdc6/
   24  cp -Rp /BOOYO/usr /mnt/hdc6/
   25  cp -Rp /dev /mnt/hdc6/
   26  cp -Rp /ramdisk/etc /mnt/hdc6/
   28  cp -Rp /ramdisk/home /mnt/hdc6/
   29  mkdir media
   30  mkdir mnt
   31  mkdir proc
   32  cp -Rp /ramdisk/home/root /mnt/hdc6/
   34  mkdir swap
   35  mkdir sys
   36  mkdir tmp
   37  cp -Rp /ramdisk/var /mnt/hdc6/
edit menu.lst
  115  cp /BOOYO/etc/inittab .
  118  cd sbin
  120  rm halt
  121  mv halt.org halt
  122  rm init
  123  mv init.org init
  125  rm poweroff
  126  mv poweroff.org poweroff
  129  rm reboot
  130  mv reboot.org reboot
edit fstab
  14  cp -Rp /BOOYO/etc /mnt/hdc6/
    4  cd etc/sysconfig
    5  ls
    6  cp /etc/sysconfig/hwconf .
    7  cp /etc/sysconfig/mouse .
    8  cp /etc/sysconfig/xserver .
    9  cd ../X11
   10  pwd
   11  cp /etc/X11/xorg.conf .

   48  cp -Rp /BOOYO/var/mail .

ID
Password
Join
You will be recognized and honored as a community leader.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-01-04 17:32:10
Processing time 0.0335 sec