# "Make image" problem

**URL:** <https://forum.openwrt.org/t/make-image-problem/898>\
**Category:** Installing and Using OpenWrt\
**Created:** [January 9, 2017, 10:02pm UTC](https://forum.openwrt.org/t/make-image-problem/898 "2017-01-09T22:02:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 9, 2017, 10:02pm UTC](https://forum.openwrt.org/t/make-image-problem/898/1 "2017-01-09T22:02:13Z")

</div>

Hello guys, I have a problem.

So I want to make an image for my WR940N with the unnecessary things removed with the image builder. So I use:

> make image PROFILE=tl-wr941nd-v6 PACKAGES="luci luci-app-commands luci-app-watchcat -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -luci-proto-ipv6 -luci-proto-ppp"

But it still including the the packages that I want removed. (As I checked some places you must put - in front of the package to remove it, but its still included, so what am i missing?)

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [January 10, 2017, 8:30am UTC](https://forum.openwrt.org/t/make-image-problem/898/2 "2017-01-10T08:30:22Z")

</div>

The packages you're trying to remove are selected by`luci`. Omit the `luci` meta package and pick the luci components individually.

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 10, 2017, 10:12am UTC](https://forum.openwrt.org/t/make-image-problem/898/3 "2017-01-10T10:12:56Z")

</div>

How can I do that?

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [January 10, 2017, 10:14am UTC](https://forum.openwrt.org/t/make-image-problem/898/4 "2017-01-10T10:14:01Z")

</div>

Simply do not put "luci" into your `PACKAGES` list but specify `luci-base luci-mod-admin-full luci-theme-bootstrap` instead.

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 10, 2017, 10:16am UTC](https://forum.openwrt.org/t/make-image-problem/898/5 "2017-01-10T10:16:01Z")

</div>

So

> make image PROFILE=tl-wr941nd-v6 PACKAGES="luci-base luci-mod-admin-full luci-theme-bootstrap"

is equal to

> make image PROFILE=tl-wr941nd-v6 PACKAGES="luci luci-app-commands luci-app-watchcat -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -luci-proto-ipv6 -luci-proto-ppp"

But the right way?

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [January 10, 2017, 10:19am UTC](https://forum.openwrt.org/t/make-image-problem/898/6 "2017-01-10T10:19:06Z")

</div>

make image PROFILE=tl-wr941nd-v6 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap luci-app-commands luci-app-watchcat -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables"

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 10, 2017, 10:39am UTC](https://forum.openwrt.org/t/make-image-problem/898/7 "2017-01-10T10:39:15Z")

</div>

That's very nice of you explaining me how. I'm very grateful.

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 10, 2017, 10:47am UTC](https://forum.openwrt.org/t/make-image-problem/898/8 "2017-01-10T10:47:37Z")

</div>

One last thing. For DHCP I should incluide udhcpc too, right? (Since it's not as I see)

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [January 10, 2017, 10:50am UTC](https://forum.openwrt.org/t/make-image-problem/898/9 "2017-01-10T10:50:33Z")

</div>

Our busybox binaries contain a DHCP client already.

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 10, 2017, 11:03am UTC](https://forum.openwrt.org/t/make-image-problem/898/10 "2017-01-10T11:03:13Z")

</div>

Well...

kmod-ip6tables, ip6tables are still there, over wise it more than perfect now.

P.S.: Is the size of those two combined big?

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 12, 2017, 4:28pm UTC](https://forum.openwrt.org/t/make-image-problem/898/11 "2017-01-12T16:28:39Z")

</div>

I need help. So I use:

> make image PROFILE=tl-wr941nd-v6 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap luci-app-upnp luci-app-sqm -kmod-ipv6 -kmod-nf-conntrack6 -kmod-nf-ipt6 -libip6tc -odhcp6c -ip6tables -ppp -ppp-mod-pppoe" FILES\_REMOVE="files\_remove" &\> results.txt

But ip6tables, kmod-ip6tables and kmod-nf-conntrack6 are still installing and they're actually installed too, when I flash.

> Installing ip6tables (1.4.21-2) to root...  
> Copying /home/ssadistic/openwrt/lede-imagebuilder-ar71xx-generic.Linux-x86\_64/dl/ip6tables\_1.4.21-2\_mips\_24kc.ipk.  
> Installing kmod-ip6tables (4.4.40-1) to root...  
> Downloading file:packages/kmod-ip6tables\_4.4.40-1\_mips\_24kc.ipk.  
> Installing kmod-nf-ipt6 (4.4.40-1) to root...  
> Downloading file:packages/kmod-nf-ipt6\_4.4.40-1\_mips\_24kc.ipk.  
> Installing kmod-nf-conntrack6 (4.4.40-1) to root...  
> Downloading file:packages/kmod-nf-conntrack6\_4.4.40-1\_mips\_24kc.ipk.

Full log: [http://pastebin.com/1tay6sE8](http://pastebin.com/1tay6sE8)

---

<div class="post-metadata">

**Author:** ![SSadistic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/ssadistic/32/278_2.png) [@SSadistic](https://forum.openwrt.org/u/SSadistic)\
**Post date:** [January 13, 2017, 4:59pm UTC](https://forum.openwrt.org/t/make-image-problem/898/12 "2017-01-13T16:59:55Z")

</div>

> make image PROFILE=tl-wr941nd-v6 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap luci-app-upnp luci-app-sqm -ip6tables -kmod-iptunnel6 -kmod-ipv6 -kmod-nf-conntrack6 -kmod-nf-ipt6 -odhcp6c -ppp -ppp-mod-pppoe" FILES\_REMOVE="files\_remove"

> make image PROFILE=tl-wr941nd-v6 PACKAGES="uhttpd uhttpd-mod-u  
> bus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap luci-app-upnp luci-app-sqm -ppp -ppp-mod-pppoe" FILES\_REMOVE="files\_remove"

Both make equal packages, with the same packages included. So there should be something wrong with the first code and jow's one..

---

<div class="post-metadata">

**Author:** ![roger](https://forum.openwrt.org/user_avatar/forum.openwrt.org/roger/32/2562_2.png) [@roger](https://forum.openwrt.org/u/roger)\
**Post date:** [March 18, 2017, 6:01pm UTC](https://forum.openwrt.org/t/make-image-problem/898/13 "2017-03-18T18:01:50Z")

</div>

I'm interested in this too.

Any updates on removing those extra IPv6 packages using just the image builder?

---

<div class="post-metadata">

**Author:** ![mike1](https://forum.openwrt.org/letter_avatar/mike1/32/5_5575768a8748004e209b776fc1b2916d.png) [@mike1](https://forum.openwrt.org/u/mike1)\
**Post date:** [March 20, 2017, 8:44am UTC](https://forum.openwrt.org/t/make-image-problem/898/14 "2017-03-20T08:44:28Z")

</div>

There are packages that may be adding the _kmod-ip6tables_ and _kmod-nf-conntrack6_ packages as a dependency:

```
mike@mikedesktop:~/code/lede/source/package$ grep -R kmod-ip6tables .
./kernel/linux/modules/netfilter.mk: $(call AddDepends/ipt,+kmod-ip6tables)
./kernel/linux/modules/netfilter.mk: $(call AddDepends/ipt,+kmod-ip6tables)
./kernel/linux/modules/netfilter.mk: DEPENDS+=+kmod-ipt-conntrack +IPV6:kmod-ip6tables
./kernel/linux/modules/netfilter.mk: DEPENDS:=+kmod-ip6tables
./network/utils/iptables/Makefile: DEPENDS:=@IPV6 +kmod-ip6tables +iptables
./network/utils/iptables/Makefile: DEPENDS:=ip6tables +kmod-ip6tables-extra
./network/utils/xtables-addons/Makefile:$(eval $(call BuildTemplate,compat-xtables,API compatibilty layer,,compat_xtables,+IPV6:kmod-ip6tables))

mike@mikedesktop:~/code/lede/source/package$ grep -R kmod-nf-conntrack6 .
./kernel/linux/modules/netfilter.mk: DEPENDS:=+kmod-nf-ipt +kmod-nf-conntrack6
./kernel/linux/modules/netfilter.mk: DEPENDS:=+kmod-nf-conntrack6 +kmod-nf-ipt6 +kmod-nf-nat
./kernel/linux/modules/netfilter.mk: DEPENDS:=+kmod-nfnetlink +kmod-nf-conntrack6 +kmod-nf-ipt +kmod-nf-ipt6
./feeds/packages/jool/Makefile: +kmod-nf-conntrack6
./feeds/packages/openvswitch/Makefile: DEPENDS:=+kmod-stp @IPV6 +kmod-gre +kmod-lib-crc32c +kmod-vxlan +kmod-nf-conntrack +kmod-nf-conntrack6 @($(SUPPORTED_KERNELS))
```
