matchstr $ARCH { amd64|i386 { default_mirror http://archive.ubuntu.com/ubuntu } sparc { matchstr $SUITE { gutsy { default_mirror http://archive.ubuntu.com/ubuntu } * { default_mirror http://ports.ubuntu.com/ubuntu-ports } } } * { default_mirror http://ports.ubuntu.com/ubuntu-ports } } mirror_style release download_style apt finddebs_style from-indices variants - buildd fakechroot minbase keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg if doing_variant fakechroot { test $FAKECHROOT = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started" } matchstr $ARCH { alpha|ia64 { global LIBC := '"libc6.1'" } kfreebsd-* { global LIBC := '"libc0.1'" } hurd-* { global LIBC := '"libc0.3'" } * { global LIBC := '"libc6'" } } proc work_out_debs { global required := $[get_debs Priority: required] if doing_variant - { #required="$required $(get_debs Priority: important)" # ^^ should be getting debconf here somehow maybe global base := $[get_debs Priority: important] } elif doing_variant buildd { global base := $[get_debs Build-Essential: yes] } elif doing_variant fakechroot || doing_variant minbase { global base := '"apt'" } matchstr $MIRRORS { https://* { global base := ""$base apt-transport-https ca-certificates"" } } } proc first_stage_install { extract $required mkdir -p "$TARGET/var/lib/dpkg" : >"$TARGET/var/lib/dpkg/status" : >"$TARGET/var/lib/dpkg/available" setup_etc if test ! -e "$TARGET/etc/fstab" { echo '# UNCONFIGURED FSTAB FOR BASE SYSTEM' > "$TARGET/etc/fstab" chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab" } setup_devices proc x_feign_install { var pkg = $1 var deb = $[debfor $pkg] var ver = $[extract_deb_field "$TARGET/$deb" Version] mkdir -p "$TARGET/var/lib/dpkg/info" echo \ "Package: $pkg Version: $ver Status: install ok installed" >> "$TARGET/var/lib/dpkg/status" touch "$TARGET/var/lib/dpkg/info/$(pkg).list" } x_feign_install dpkg } proc second_stage_install { proc x_core_install { smallyes '' | in_target dpkg --force-depends --install $[debfor @Argv] } proc p { global baseprog := "$($baseprog + ${1:-1})" } if doing_variant fakechroot { setup_proc_fakechroot } else { setup_proc in_target /sbin/ldconfig } global DEBIAN_FRONTEND := 'noninteractive' global DEBCONF_NONINTERACTIVE_SEEN := 'true' export DEBIAN_FRONTEND DEBCONF_NONINTERACTIVE_SEEN global baseprog := '0' global bases := '7' p; progress $baseprog $bases INSTCORE "Installing core packages" #1 info INSTCORE "Installing core packages..." p; progress $baseprog $bases INSTCORE "Installing core packages" #2 ln -sf mawk "$TARGET/usr/bin/awk" x_core_install base-passwd x_core_install base-files p; progress $baseprog $bases INSTCORE "Installing core packages" #3 x_core_install dpkg if test ! -e "$TARGET/etc/localtime" { ln -sf /usr/share/zoneinfo/Etc/UTC "$TARGET/etc/localtime" } if doing_variant fakechroot { install_fakechroot_tools } p; progress $baseprog $bases INSTCORE "Installing core packages" #4 x_core_install $LIBC p; progress $baseprog $bases INSTCORE "Installing core packages" #5 x_core_install perl-base p; progress $baseprog $bases INSTCORE "Installing core packages" #6 rm "$TARGET/usr/bin/awk" x_core_install mawk p; progress $baseprog $bases INSTCORE "Installing core packages" #7 if doing_variant - { x_core_install debconf } global baseprog := '0' global bases := $[set -- $required; echo $Argc] info UNPACKREQ "Unpacking required packages..." smallyes '' | shell {repeatn 5 in_target_failmsg UNPACK_REQ_FAIL_FIVE "Failure while unpacking required packages. This will be attempted up to five times." "" \ dpkg --status-fd 8 --force-depends --unpack $[debfor $required] !8 > !1 !1 > !7 | dpkg_progress $baseprog $bases UNPACKREQ "Unpacking required packages" UNPACKING} 7>&1 info CONFREQ "Configuring required packages..." if doing_variant fakechroot { # fix initscripts postinst (no mounting possible, and wrong if condition) sed -i '/dpkg.*--compare-versions/ s/\/lt-nl/' "$TARGET/var/lib/dpkg/info/initscripts.postinst" } echo \ "#!/bin/sh exit 101" > "$TARGET/usr/sbin/policy-rc.d" chmod 755 "$TARGET/usr/sbin/policy-rc.d" mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL" echo \ "#!/bin/sh echo echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon" chmod 755 "$TARGET/sbin/start-stop-daemon" if test -x "$TARGET/sbin/initctl" { mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL" echo \ "#!/bin/sh if [ \"\$1\" = version ]; then exec /sbin/initctl.REAL \"\$@\"; fi echo echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl" chmod 755 "$TARGET/sbin/initctl" } setup_dselect_method apt smallyes '' | shell {in_target_failmsg CONF_REQ_FAIL "Failure while configuring required packages." "" \ dpkg --status-fd 8 --configure --pending --force-configure-any --force-depends !8 > !1 !1 > !7 | dpkg_progress $baseprog $bases CONFREQ "Configuring required packages" CONFIGURING} 7>&1 global baseprog := '0' global bases := $[set -- $base; echo $Argc] info UNPACKBASE "Unpacking the base system..." setup_available $required $base global done_predeps := '' while predep=$(get_next_predep) { # We have to resolve dependencies of pre-dependencies manually because # dpkg --predep-package doesn't handle this. global predep := $[without $[without $[resolve_deps $predep] $required] $done_predeps] # XXX: progress is tricky due to how dpkg_progress works # -- cjwatson 2009-07-29 p; smallyes '' | in_target dpkg --force-overwrite --force-confold --skip-same-version --install $[debfor $predep] global base := $[without $base $predep] global done_predeps := ""$done_predeps $predep"" } smallyes '' | shell {repeatn 5 in_target_failmsg INST_BASE_FAIL_FIVE "Failure while installing base packages. This will be re-attempted up to five times." "" \ dpkg --status-fd 8 --force-overwrite --force-confold --skip-same-version --unpack $[debfor $base] !8 > !1 !1 > !7 | dpkg_progress $baseprog $bases UNPACKBASE "Unpacking base system" UNPACKING} 7>&1 info CONFBASE "Configuring the base system..." smallyes '' | shell {repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be re-attempted up to five times." "" \ dpkg --status-fd 8 --force-confold --skip-same-version --configure -a !8 > !1 !1 > !7 | dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING} 7>&1 if test -x "$TARGET/sbin/initctl.REAL" { mv "$TARGET/sbin/initctl.REAL" "$TARGET/sbin/initctl" } mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon" rm -f "$TARGET/usr/sbin/policy-rc.d" progress $bases $bases CONFBASE "Configuring base system" info BASESUCCESS "Base system installed successfully." } (CommandList children: [ (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(amd64)} {(i386)}] action: [(C {(default_mirror)} {(http) (Lit_Other ":") (//archive.ubuntu.com/ubuntu)})] spids: [7 10 20 -1] ) (case_arm pat_list: [{(sparc)}] action: [ (Case to_match: {($ VSub_Name "$SUITE")} arms: [ (case_arm pat_list: [{(gutsy)}] action: [ (C {(default_mirror)} {(http) (Lit_Other ":") (//archive.ubuntu.com/ubuntu)}) ] spids: [34 35 45 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (C {(default_mirror)} {(http) (Lit_Other ":") (//ports.ubuntu.com/ubuntu-ports)}) ] spids: [48 49 59 -1] ) ] spids: [27 31 62] ) ] spids: [23 24 65 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [(C {(default_mirror)} {(http) (Lit_Other ":") (//ports.ubuntu.com/ubuntu-ports)})] spids: [68 69 79 -1] ) ] spids: [0 4 81] ) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (C {(finddebs_style)} {(from-indices)}) (C {(variants)} {(-)} {(buildd)} {(fakechroot)} {(minbase)}) (C {(keyring)} {(/usr/share/keyrings/ubuntu-archive-keyring.gpg)}) (If arms: [ (if_arm cond: [(Sentence child:(C {(doing_variant)} {(fakechroot)}) terminator:)] action: [ (AndOr children: [ (C {(test)} {(DQ ($ VSub_Name "$FAKECHROOT"))} {(Lit_Other "=")} {(DQ (true))}) (C {(error)} {(1)} {(FAKECHROOTREQ)} {(DQ ("This variant requires fakechroot environment to be started"))} ) ] op_id: Op_DPipe ) ] spids: [-1 117] ) ] spids: [-1 144] ) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(alpha)} {(ia64)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc6.1))} spids:[159])] spids: [159] ) ] spids: [154 157 164 -1] ) (case_arm pat_list: [{(kfreebsd-) (Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc0.1))} spids:[171])] spids: [171] ) ] spids: [167 169 176 -1] ) (case_arm pat_list: [{(hurd-) (Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc0.3))} spids:[183])] spids: [183] ) ] spids: [179 181 188 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc6))} spids:[194])] spids: [194] ) ] spids: [191 192 199 -1] ) ] spids: [147 151 201] ) (FuncDef name: work_out_debs body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:required) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(get_debs)} {(Priority) (Lit_Other ":")} {(required)})] ) left_token: spids: [214 221] ) ) } spids: [212] ) ] spids: [212] ) (If arms: [ (if_arm cond: [(Sentence child:(C {(doing_variant)} {(-)}) terminator:)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(get_debs)} {(Priority) (Lit_Other ":")} {(important)}) ] ) left_token: spids: [246 253] ) ) } spids: [244] ) ] spids: [244] ) ] spids: [-1 233] ) (if_arm cond: [(Sentence child:(C {(doing_variant)} {(buildd)}) terminator:)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(get_debs)} {(Build-Essential) (Lit_Other ":")} {(yes)}) ] ) left_token: spids: [269 276] ) ) } spids: [267] ) ] spids: [267] ) ] spids: [257 264] ) (if_arm cond: [ (Sentence child: (AndOr children: [ (C {(doing_variant)} {(fakechroot)}) (C {(doing_variant)} {(minbase)}) ] op_id: Op_DPipe ) terminator: ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: {(DQ (apt))} spids: [296] ) ] spids: [296] ) ] spids: [280 293] ) ] spids: [-1 302] ) (Case to_match: {($ VSub_Name "$MIRRORS")} arms: [ (case_arm pat_list: [{(https) (Lit_Other ":") (//) (Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: {(DQ ($ VSub_Name "$base") (" apt-transport-https ca-certificates"))} spids: [320] ) ] spids: [320] ) ] spids: [313 317 327 -1] ) ] spids: [306 310 330] ) ] spids: [209] ) spids: [204 208] ) (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: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} spids: [361] ) ] ) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} spids: [370] ) ] ) (C {(setup_etc)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} {(Lit_Other "]")} ) terminator: ) ] action: [ (SimpleCommand words: [{(echo)} {(SQ <"# UNCONFIGURED FSTAB FOR BASE SYSTEM">)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} spids: [406] ) ] ) (Sentence child: (C {(chown)} {(0) (Lit_Other ":") (0)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} ) terminator: ) (C {(chmod)} {(644)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))}) ] spids: [-1 397] ) ] spids: [-1 436] ) (C {(setup_devices)}) (FuncDef name: x_feign_install body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:pkg) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [454] ) ] spids: [452] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:deb) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$pkg")})] ) left_token: spids: [464 468] ) ) } spids: [462] ) ] spids: [460] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ver) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(extract_deb_field)} {(DQ ($ VSub_Name "$TARGET") (/) ($ VSub_Name "$deb"))} {(Version)} ) ] ) left_token: spids: [476 486] ) ) } spids: [474] ) ] spids: [472] ) (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: [ (Redir op_id: Redir_DGreat fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} spids: [515] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] spids: [449] ) spids: [444 448] ) (C {(x_feign_install)} {(dpkg)}) ] spids: [340] ) spids: [335 339] ) (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: (CommandList children: [(C {(debfor)} {(DQ ($ VSub_At "$@"))})] ) left_token: spids: [578 584] ) } ) ] negated: False ) ] spids: [560] ) spids: [555 559] ) (FuncDef name: p body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:baseprog) op: Equal rhs: { (DQ (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name "$baseprog")}) right: (ArithWord w: { (BracedVarSub token: suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [606 610] ) } ) ) spids: [601 612] ) ) } spids: [599] ) ] spids: [599] ) ] spids: [596] ) spids: [591 595] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(doing_variant)} {(fakechroot)}) terminator: ) ] action: [(C {(setup_proc_fakechroot)})] spids: [-1 627] ) ] else_action: [(C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)})] spids: [633 644] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DEBIAN_FRONTEND) op: Equal rhs: {(noninteractive)} spids: [648] ) ] spids: [648] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DEBCONF_NONINTERACTIVE_SEEN) op: Equal rhs: {(true)} spids: [652] ) ] spids: [652] ) (C {(export)} {(DEBIAN_FRONTEND)} {(DEBCONF_NONINTERACTIVE_SEEN)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[664])] spids: [664] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:bases) op:Equal rhs:{(7)} spids:[668])] spids: [668] ) (Sentence child:(C {(p)}) terminator:) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing core packages..."))}) (Sentence child:(C {(p)}) terminator:) (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-passwd)}) (C {(x_core_install)} {(base-files)}) (Sentence child:(C {(p)}) terminator:) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(dpkg)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/Etc/UTC)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} ) ] spids: [-1 784] ) ] spids: [-1 799] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(doing_variant)} {(fakechroot)}) terminator: ) ] action: [(C {(install_fakechroot_tools)})] spids: [-1 810] ) ] spids: [-1 816] ) (Sentence child:(C {(p)}) terminator:) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {($ VSub_Name "$LIBC")}) (Sentence child:(C {(p)}) terminator:) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(perl-base)}) (Sentence child:(C {(p)}) terminator:) (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)}) (Sentence child:(C {(p)}) terminator:) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (If arms: [ (if_arm cond: [(Sentence child:(C {(doing_variant)} {(-)}) terminator:)] action: [(C {(x_core_install)} {(debconf)})] spids: [-1 929] ) ] spids: [-1 937] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[941])] spids: [941] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:bases) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Sentence child: (C {(set)} {(--)} {($ VSub_Name "$required")}) terminator: ) (C {(echo)} {($ VSub_Pound "$#")}) ] ) left_token: spids: [946 957] ) } spids: [945] ) ] spids: [945] ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (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: (CommandList children: [(C {(debfor)} {($ VSub_Name "$required")})] ) left_token: spids: [1007 1011] ) } ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1013] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1016] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKREQ)} {(DQ ("Unpacking required packages"))} {(UNPACKING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1037])] spids: [979 1035] ) ] negated: False ) (C {(info)} {(CONFREQ)} {(DQ ("Configuring required packages..."))}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(doing_variant)} {(fakechroot)}) terminator: ) ] action: [ (C {(sed)} {(-i)} {(SQ <"/dpkg.*--compare-versions/ s/\\/lt-nl/">)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/initscripts.postinst))} ) ] spids: [-1 1059] ) ] spids: [-1 1080] ) (SimpleCommand words: [{(echo)} {(DQ ("#!/bin/sh\n") ("exit 101"))}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/policy-rc.d))} spids: [1092] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/policy-rc.d))}) (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:) ("Warning: Fake start-stop-daemon called, doing nothing") (EscapedLiteralPart token:) ) } ] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} spids: [1136] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-x)} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl))} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl))} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl.REAL))} ) (SimpleCommand words: [ {(echo)} { (DQ ("#!/bin/sh\n") ("if [ ") (EscapedLiteralPart token: ) (EscapedLiteralPart token:) (1) (EscapedLiteralPart token: ) (" = version ]; then exec /sbin/initctl.REAL ") (EscapedLiteralPart token:) (EscapedLiteralPart token: ) ("@") (EscapedLiteralPart token:) ("; fi\n") ("echo\n") ("echo ") (EscapedLiteralPart token: ) ("Warning: Fake initctl called, doing nothing") (EscapedLiteralPart token:) ) } ] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl))} spids: [1208] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl))}) ] spids: [-1 1169] ) ] spids: [-1 1226] ) (C {(setup_dselect_method)} {(apt)}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (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: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1272] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1275] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFREQ)} {(DQ ("Configuring required packages"))} {(CONFIGURING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1296])] spids: [1244 1294] ) ] negated: False ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[1301])] spids: [1301] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:bases) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Sentence child: (C {(set)} {(--)} {($ VSub_Name "$base")}) terminator: ) (C {(echo)} {($ VSub_Pound "$#")}) ] ) left_token: spids: [1307 1318] ) ) } spids: [1305] ) ] spids: [1305] ) (C {(info)} {(UNPACKBASE)} {(DQ ("Unpacking the base system..."))}) (C {(setup_available)} {($ VSub_Name "$required")} {($ VSub_Name "$base")}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:done_predeps) op:Equal rhs:{(SQ )} spids:[1340])] spids: [1340] ) (While cond: [ (Sentence child: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:predep) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(get_next_predep)})]) left_token: spids: [1346 1348] ) } spids: [1345] ) ] spids: [1345] ) terminator: ) ] body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:predep) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(without)} { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(without)} { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(resolve_deps)} {($ VSub_Name "$predep")} ) ] ) left_token: spids: [1371 1375] ) ) } {(DQ ($ VSub_Name "$required"))} ) ] ) left_token: spids: [1367 1381] ) ) } {(DQ ($ VSub_Name "$done_predeps"))} ) ] ) left_token: spids: [1363 1387] ) } spids: [1362] ) ] spids: [1362] ) (Sentence child:(C {(p)}) terminator:) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--install)} { (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$predep")})] ) left_token: spids: [1421 1425] ) } ) ] negated: False ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(without)} {(DQ ($ VSub_Name "$base"))} {(DQ ($ VSub_Name "$predep"))} ) ] ) left_token: spids: [1429 1439] ) } spids: [1428] ) ] spids: [1428] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:done_predeps) op: Equal rhs: {(DQ ($ VSub_Name "$done_predeps") (" ") ($ VSub_Name "$predep"))} spids: [1442] ) ] spids: [1442] ) ] spids: [1351 1450] ) ) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (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-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$base")})] ) left_token: spids: [1494 1498] ) } ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1500] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1503] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKBASE)} {(DQ ("Unpacking base system"))} {(UNPACKING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1524])] spids: [1462 1522] ) ] negated: False ) (C {(info)} {(CONFBASE)} {(DQ ("Configuring the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ( "Failure while configuring base packages. This will be re-attempted up to five times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1579] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1582] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} {(CONFIGURING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1603])] spids: [1547 1601] ) ] negated: False ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-x)} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl.REAL))} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl.REAL))} {(DQ ($ VSub_Name "$TARGET") (/sbin/initctl))} ) ] spids: [-1 1622] ) ] spids: [-1 1638] ) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} ) (C {(rm)} {(-f)} {(DQ ($ VSub_Name "$TARGET") (/usr/sbin/policy-rc.d))}) (C {(progress)} {($ VSub_Name "$bases")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] spids: [552] ) spids: [547 551] ) ] )