(CommandList children: [ (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (C {(force_md5)}) (Assignment scope:Global pairs:[(assign_pair lhs:(LeftVar name:LIBC) rhs:{(libc6)})]) (If arms: [ (if_arm cond: (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ (alpha))} {(Lit_Other "]")} ) (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ (ia64))} {(Lit_Other "]")} ) ] op_id: Op_DPipe ) action: (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:LIBC) rhs:{(DQ (libc6.1))})] ) ) ] ) (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 debianutils diff dpkg e2fsprogs fileutils findutils grep gzip hostname libc6 libcap1 libdb3 libgdbmg1 libncurses5 libpam-modules libpam-runtime libpam0g libperl5.6 libstdc++2.10-glibc2.2 login mawk mount ncurses-base ncurses-bin perl-base sed shellutils slang1 sysvinit tar textutils util-linux" ) ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ ( "apt binutils cpio cpp cpp-2.95 debconf dpkg-dev g++ g++-2.95 gcc gcc-2.95 libc6-dev libdb2 libstdc++2.10-dev make patch perl perl-modules" ) ) } ) ] ) (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: [81 85] ) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(DQ (alpha))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (libc6))} {(DQ ($ VSub_Name "$required"))} ) spids: [152 163] ) (" libc6.1") ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (libc6-dev))} {(DQ ($ VSub_Name "$base"))} ) spids: [170 181] ) (" libc6.1-dev") ) } ) ] ) ] ) ) (case_arm pat_list:[{(DQ (arm))}] action:(NoOp)) (case_arm pat_list:[{(DQ (i386))}] action:(NoOp)) (case_arm pat_list: [{(DQ (ia64))}] action: (CommandList children: [ (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:required) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (libc6))} {(DQ ($ VSub_Name "$required"))} ) spids: [218 229] ) (" libc6.1 gcc-2.96-base libreadline4") ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (cpp-2.95))} {(DQ ($ VSub_Name "$base"))} ) spids: [236 247] ) (" cpp-2.96") ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (gcc-2.95))} {(DQ ($ VSub_Name "$base"))} ) spids: [254 265] ) (" gcc-2.96") ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ ("g++-2.95"))} {(DQ ($ VSub_Name "$base"))} ) spids: [272 283] ) (" g++-2.96") ) } ) ] ) (Assignment scope: Global pairs: [ (assign_pair lhs: (LeftVar name:base) rhs: { (DQ (CommandSubPart command_list: (C {(without_package)} {(DQ (libc6-dev))} {(DQ ($ VSub_Name "$base"))} ) spids: [290 301] ) (" libc6.1-dev elilo efibootmgr dosfstools libparted1.4 parted") ) } ) ] ) ] ) ) (case_arm pat_list:[{(DQ (m68k))}] action:(NoOp)) (case_arm pat_list:[{(DQ (powerpc))}] action:(NoOp)) (case_arm pat_list:[{(DQ (sparc))}] action:(NoOp)) (case_arm pat_list:[{(DQ (mips))}] action:(NoOp)) (case_arm pat_list:[{(DQ (mipsel))}] action:(NoOp)) (case_arm pat_list:[{(DQ (hppa))}] action:(NoOp)) (case_arm pat_list:[{(s390)}{(s390x)}] action:(NoOp)) (case_arm pat_list:[{(sh) (Lit_Other "*")}] action:(NoOp)) (case_arm pat_list:[{(Lit_Other "*")}] action:(NoOp)) ] ) ] ) spids: [58 62] ) (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: [430] ) ] ) (SimpleCommand words: [{(echo)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} fd: -1 spids: [439] ) ] ) (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: [475] ) ] ) (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: [529 534] ) ) } ) ] ) (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: [542 553] ) ) } ) ] ) (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: [582] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] ) spids: [509 513] ) (C {(x_feign_install)} {(dpkg)}) ] ) spids: [404 408] ) (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: [645 652] ) } ) ] negated: False ) ] ) spids: [622 626] ) (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: [674 678] ) } ) ) spids: [669 680] ) ) } ) ] ) ] ) spids: [659 663] ) (C {(setup_devices)}) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:DEBIAN_FRONTEND) rhs:{(noninteractive)})] ) (Assignment scope:Global flags:[Export] words:[{(DEBIAN_FRONTEND)}]) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:baseprog) rhs:{(0)})] ) (Assignment scope: Global pairs: [(assign_pair lhs:(LeftVar name:bases) rhs:{(40)})] ) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing core packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (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")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (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")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(x_core_install)} {($ VSub_Name "$LIBC")}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(x_core_install)} {(perl-base)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(rm)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(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)} {(--force-depends)} {(--unpack)} { (CommandSubPart command_list: (C {(debfor)} {($ VSub_Name "$required")}) spids: [1004 1009] ) } ) ] negated: False ) (C {(p)} {(10)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (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: [1069] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ("Failure while configuring required packages."))} {(DQ )} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ) ] negated: False ) (C {(p)} {(10)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(info)} {(INSTBASE)} {(DQ ("Installing base packages..."))}) (C {(p)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(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)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} {(CommandSubPart command_list:(C {(debfor)} {($ VSub_Name "$base")}) spids:[12271232])} ) ] negated: False ) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ("Failure while configuring base packages. This will be attempted 5 times.")) } {(DQ )} {(dpkg)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ) ] negated: False ) (C {(p)} {(9)}) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (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")} {(INSTBASE)} {(DQ ("Installing base system"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] ) spids: [614 618] ) ] )