(CommandList children: [ (C {(default_mirror)} {(http) (Lit_Other ":") (//old-releases.ubuntu.com/ubuntu)}) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (Assignment scope:Global pairs:[(assign_pair lhs:(LeftVar name:LIBC) rhs:{(libc6)})]) (FuncDef name: work_out_debs body: (BraceGroup children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ ( "base-files base-passwd bash bsdutils coreutils libacl1 libattr1 debconf debconf-i18n liblocale-gettext-perl libtext-iconv-perl libtext-wrapi18n-perl libtext-charwidth-perl debianutils diff dpkg dselect libblkid1 e2fsprogs e2fslibs libcomerr2 libss2 libuuid1 findutils grep gzip hostname libcap1 libc6 libdb1-compat libdb3 libncurses5 libnewt0.51 libpam-modules libpam-runtime libpam0g libpopt0 login makedev mawk modutils mount ncurses-base ncurses-bin passwd perl-base procps sed slang1a-utf8 lsb-base initscripts sysvinit sysv-rc tar util-linux zlib1g whiptail libgcc1 gcc-3.3-base libstdc++5" ) ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ ( "adduser alsa-base alsa-utils apt apt-utils aptitude at base-config bind9-host bsdmainutils bzip2 console-common console-data console-tools cpio cramfsprogs cron dash dbus-1 dhcp3-client dhcp3-common discover1 discover1-data dmsetup dnsutils dosfstools ed eject evms evms-ncurses fdutils file ftp gettext-base gnupg groff-base hdparm hotplug ifrename ifupdown info initrd-tools iproute iptables iputils-arping iputils-ping iputils-tracepath jfsutils klogd less libasound2 libatm1 libbz2-1.0 libconsole libdb4.2 libdevmapper1.00 libdiscover1 libdns16 libevms-2.3 libexpat1 libfribidi0 libgc1 libgcrypt7 libgdbm3 libgnutls10 libgpg-error0 libgpmg1 libidn11 libisc7 libiw27 libldap2 liblockfile1 liblwres1 liblzo1 libmagic1 libncursesw5 libopencdk8 libparted1.6-0 libpcap0.7 libpcap0.8 libreiserfs0.3-0 libsasl2 libsigc++-1.2-5c102 libssl0.9.7 libtasn1-2 libusb-0.1-4 libwrap0 locales logrotate lshw lsof ltrace lvm-common lvm10 lvm2 mailx man-db manpages mdadm mii-diag mime-support module-init-tools mtr-tiny mutt nano net-tools netbase netcat netkit-inetd ntp ntpdate openssh-client parted pciutils popularity-contest postfix postfix-tls ppp pppconfig pppoeconf psmisc python python2.3 reiser4progs reiserfsprogs reportbug rsync strace sudo sysklogd tcpd tcpdump telnet time ubuntu-base udev usbutils vim vim-common w3m wget wireless-tools xfsprogs" ) ) } ) ] ) (FuncDef name: without_package body: (BraceGroup children: [ (Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number "$2"))}) (C {(tr)} {(SQ <" ">)} {(SQ <"\\n">)}) (C {(grep)} {(-v)} {(DQ ("^") ($ VSub_Number "$1") (Lit_Other "$"))}) (C {(tr)} {(SQ <"\\n">)} {(SQ <" ">)}) ] negated: False ) ] ) spids: [42 46] ) (FuncDef name: subst_package body: (BraceGroup children: [ (Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number "$3"))}) (C {(tr)} {(SQ <" ">)} {(SQ <"\\n">)}) (C {(sed)} { (DQ ("s/^") ($ VSub_Number "$1") (Lit_Other "$") (/) ($ VSub_Number "$2") (/)) } ) (C {(tr)} {(SQ <"\\n">)} {(SQ <" ">)}) ] negated: False ) ] ) spids: [96 100] ) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(DQ (i386))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: {(DQ ($ VSub_Name "$required") (" libc6-i686"))} ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: {(DQ ($ VSub_Name "$base") (" dmidecode memtest86+ libreadline4"))} ) ] ) ] ) ) (case_arm pat_list: [{(DQ (powerpc))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: {(DQ ($ VSub_Name "$required") (" libreadline4"))} ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ ($ VSub_Name "$base") ( " hfsplus hfsutils libhfsp0 mac-fdisk pmac-fdisk powerpc-utils" ) ) } ) ] ) ] ) ) (case_arm pat_list: [{(DQ (amd64))}] action: (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: {(DQ ($ VSub_Name "$base") (" dmidecode libreadline4"))} ) ] ) ) (case_arm pat_list:[{(Lit_Other "*")}] action:(NoOp)) ] ) ] ) spids: [19 23] ) (FuncDef name: install_debs body: (BraceGroup children:[(C {(first_stage_install)})(C {(second_stage_install)})]) spids: [241 245] ) (FuncDef name: first_stage_install body: (BraceGroup children: [ (C {(extract)} {($ VSub_Name "$required")}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg))}) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} fd: -1 spids: [283] ) ] ) (SimpleCommand words: [{(echo)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} fd: -1 spids: [292] ) ] ) (C {(setup_etc)}) (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} {(Lit_Other "]")} ) action: (CommandList children: [ (SimpleCommand words: [{(echo)} {(SQ <"# UNCONFIGURED FSTAB FOR BASE SYSTEM">)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} fd: -1 spids: [328] ) ] ) (C {(chown)} {(0) (Lit_Other ":") (0)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} ) (C {(chmod)} {(644)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))}) ] ) ) ] ) (FuncDef name: x_feign_install body: (BraceGroup children: [ (Assignment scope: Local pairs: [(assign_pair lhs:(LeftVar name:pkg) rhs:{(DQ ($ VSub_Number "$1"))})] ) (Assignment scope: Local pairs: [ (assign_pair lhs: (LeftVar name:deb) rhs: { (DQ (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$pkg")}) spids: [382 387] ) ) } ) ] ) (Assignment scope: Local pairs: [ (assign_pair lhs: (LeftVar name:ver) rhs: { (DQ (CommandSubPart command_list: (C {(extract_deb_field)} {(DQ ($ VSub_Name "$TARGET") (/) ($ VSub_Name "$deb"))} {(Version)} ) spids: [395 406] ) ) } ) ] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info))}) (SimpleCommand words: [ {(echo)} { (DQ ("Package: ") ($ VSub_Name "$pkg") ("\n") ("Version: ") ($ VSub_Name "$ver") ("\n") ("Status: install ok installed") ) } ] redirects: [ (Redirect op_id: Redir_DGreat arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} fd: -1 spids: [435] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] ) spids: [362 366] ) (C {(x_feign_install)} {(dpkg)}) ] ) spids: [257 261] ) (FuncDef name: second_stage_install body: (BraceGroup children: [ (FuncDef name: x_core_install body: (BraceGroup children: [ (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} { (CommandSubPart command_list: (C {(debfor)} {(DQ ($ VSub_At "$@"))}) spids: [498 505] ) } ) ] negated: False ) ] ) spids: [475 479] ) (FuncDef name: p body: (BraceGroup children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:baseprog) rhs: { (DQ (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name "$baseprog")}) right: (ArithWord w: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [527 531] ) } ) ) spids: [522 533] ) ) } ) ] ) ] ) spids: [512 516] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBIAN_FRONTEND) rhs:{(noninteractive)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBCONF_NONINTERACTIVE_SEEN) rhs:{(true)})] ) (Assignment scope: Global flags: [Export] words: [{(DEBIAN_FRONTEND)} {(DEBCONF_NONINTERACTIVE_SEEN)}] ) (C {(setup_devices)}) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:bases) rhs:{(7)})] ) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing core packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(base-files)} {(base-passwd)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(dpkg)}) (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} {(Lit_Other "]")} ) action: (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} ) ) ] ) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {($ VSub_Name "$LIBC")}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(perl-base)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(rm)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(debconf)}) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:bases) rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(set)} {(--)} {($ VSub_Name "$required")}) (C {(echo)} {($ VSub_Pound "$#")}) ] ) spids: [817 829] ) ) } ) ] ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(UNPACK_REQ_FAIL_FIVE)} { (DQ ( "Failure while unpacking required packages. This will be attempted up to five times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-depends)} {(--unpack)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$required")}) spids: [877 882] ) } ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [884] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [887] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKREQ)} {(DQ ("Unpacking required packages"))} {(UNPACKING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[908])] ) ] negated: False ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (C {(info)} {(CONFREQ)} {(DQ ("Configuring required packages..."))}) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} ) (SimpleCommand words: [ {(echo)} { (DQ ("#!/bin/sh\n") ("echo\n") ("echo ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ("Warning: Fake start-stop-daemon called, doing nothing") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ) } ] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} fd: -1 spids: [953] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ("Failure while configuring required packages."))} {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1015] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1018] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFREQ)} {(DQ ("Configuring required packages"))} {(CONFIGURING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1039])] ) ] negated: False ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:bases) rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(set)} {(--)} {($ VSub_Name "$base")}) (C {(echo)} {($ VSub_Pound "$#")}) ] ) spids: [1050 1062] ) ) } ) ] ) (C {(info)} {(UNPACKBASE)} {(DQ ("Unpacking the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(INST_BASE_FAIL_FIVE)} { (DQ ( "Failure while installing base packages. This will be re-attempted up to five times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$base")}) spids: [1116 1121] ) } ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1123] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1126] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKBASE)} {(DQ ("Unpacking base system"))} {(UNPACKING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1147])] ) ] negated: False ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (C {(info)} {(CONFBASE)} {(DQ ("Configuring the base system..."))}) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail))} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail.REAL))} ) (C {(ln)} {(-s)} {(/bin/true)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell children: [ (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ( "Failure while configuring base packages. This will be attempted 5 times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ] redirects: [ (Redirect op_id: Redir_GreatAnd arg_word: {(1)} fd: 8 spids: [1230] ) (Redirect op_id: Redir_GreatAnd arg_word: {(7)} fd: 1 spids: [1233] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} {(CONFIGURING)} ) ] negated: False ) ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:7 spids:[1254])] ) ] negated: False ) (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail))}) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail.REAL))} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/sendmail))} ) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} ) (C {(progress)} {($ VSub_Name "$bases")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] ) spids: [467 471] ) ] )